Giving a test to a group of students, the grades and gender are summarized below:

A B C Total
Male 20 16 3 39
Female 2 9 12 23
Total 22 25 15 62

If one student is chosen at random, find the probability that the student was female given they got a 'B'.