Let $A$ be the event that the question is known and $B$ be the event that the Question is unkown, so that he need to guess. Let $P(A)=p$ and $P(B)=1-p$, as these are only two events for the experiment.
Let $C$ be the event that the answer is correct. The we know the following info, $P(C|A)=1$, $P(C|B)=1/2$, and $P(B|C)=1/6$. We could find the probability that the the question is NOT unkown (or he knows the question) given that the answer is correct , that is, $P(B^c|C)= 1-1/6= 5/6=P(A|C)$.
We know from the Baye's formulaa -
$P(C|A)=P(A|C)P(C)/P(A)$
$1=(5/6p)P(C)$ (1)
and
$P(C|B)=P(B|C)P(C)/P(B)$
$1/2=(1/6(1-p))P(C)$ (2)
Take the ratio of eqn., 1 and 2 to get -
$2p=5(1-p)$
$p=5/7$.
Option C is correct.