Keep it simple. Allocate the same amount of money to each stock, say $5,000 for a $100,000 account. If A goes up 10%, you make 10% on your five grand and the same for B. If the stock goes to zero, you lose 5% of your account.
If you want to complicate it, you can adjust for volatility...