Consider the following events,
M = selected student is a male
F = selected student is a female
A = selected student has an A
The probability that the student is a male, given that he/she has an A, is given by,

This can be evaluated as,

Thus, the probability that the student is a male, is 1/3 , given that he/she has an A.