You choose one of two identical looking bags at random. One bag has three black marbles and one white marble. The other has three white marbles and one black marble.
After choosing a bag you draw one marble out at random. You notice it is black. You then put it back and draw another marble out of the same bag at random.
What is the probability that the second marble drawn is black?
The probability of event A happening given that event B already happened is the probability of A and B happening divided by the probability that B happened. This can be pressed as P(A|B)=P(A and B)/P(B).
In this case A is drawing a black marble and B is having already drawn a black marble.