Let
The probability of student selected is hostler is
The probability of student selected is day scholar is
The probability of grad ‘A’ student is
The probability that the student selected is a hostler, if he has an ‘A’ grade that is
The probability of chosen student is hostler.
The probability that student gets ‘A’ grade, given that he is hostler,
Probability of chosen student is scholar,
The probability that student gets ‘A’ grade, if day scholar,
Put these values in equation (1),
Thus, the required probability is