Using the information of the stock being good, the probability is updated to a conditional probability:
P(John | good) = P(good and John) / P(good).
P(good and John) = P(good | John) × P(John) = 0.5 × 0.6 = 0.3.
P(good and Andrew) = 0.25 × 0.40 = 0.10.
P(good) = P(good and John) + P (good and Andrew) = 0.40.
P(John | good) = P(good and John) / P(good) = 0.3 / 0.4 = 0.75.