Let E1, E2, E be the events
E1 : ‘the student knows the answer’
E2 : ‘the student guesses the answer’,
E : ‘the answer is correct’
(By Baye's Theorem)