P(g) = probability of guessing =13
P(c) = probability of copying =16
P(k) = probability of knowing =1−13−16=12
Probability of answering correctly during guess =1/4 (one out of four choices)
Probability of answering correctly during copy =1/8
Probability of answering correctly when he knew answer to the question (by solving) = 1 (As he knows answer he will answer it correctly).
Hence using Bayes formula (or theorem)
The probability that he knew the answer to the question, given that he answered it correctly
=(1×12)(13×14+16×18+12×1)
=12(112+148+12)=2429