And you could do this exactly from our previous formula, let x be the discreet random variable that's the indicator whether' A has occurred y be an indicator that the event B has occurred then plug in to the discreet version of Bayes' rule, that would be a simple proof if you are willing to stipulate the previous page, you can also prove it very easily just by working with the rules of probability in sets. 