In conditional probability, we write this as P(B | A), or the conditional probability of B given that A has occured. It is given as
The probability that a male student AND has they got B is
The probability that a student got B is
Putting it together we have
Therefore, the probability that the student was male GIVEN they got a 'B' is 0.1