Probability that student guesses the answer
P(A) = 1/3
Probability that student copies the answer
P(B) = 1/6
Probability that student knows the answer
P(C) = 1 - 1/3 - 1/6
= (6 - 2 - 1)/6 = (6 - 3)/6
= 3/6 = 1/2
Let E is the event that answer is correct

Probability that student knows the answer and answered correctly
