The trick to this question lies in the last sentence of the question “IF HE WRITES THE TEST what is the probability that he heard the alarm clock?”
So, the person in the question has for sure written the test. Well, there’s only two ways he could have written the test, he heard the alarm and wrote the test or he didn’t hear the alarm and wrote the test anyway. The question is asking us to find the probability of the first scenario.
P(heard/woken up by the alarm) = 80/100.
Therefore, P(did not hear/not woken up by alarm) = 20/100.
P(writing test after hearing alarm) = 90/100.
P(writing test after not hearing the alarm) = 50/100. All the above information is given/can be discerned from the question.
So, Scenario 1 is two successive events of hearing the alarm and writing the exam which is = 80/100*90/100 = 7200/10000 = 72/100.
Scenario 2 is two successive events of not hearing the alarm and still writing the exam which is = 20/100*50/100 = 1000/10000 = 10/100.
The question has asked: If he writes the test what is the probability that he HEARD the alarm clock? We want to know what the probability is of scenario 1 out of the two possible scenarios available, therefore the total possible scenarios = Scenario 1 + Scenario 2 = 72/100 + 10/100 = 82/100.
Therefore, our required probability = [72/100]/[82/100] = 72/82 = 36/41, which is Option D.