Suppose he sees a red marble.
If each marble is equally likely, the probability that a red marble is observed from "red"is 2/3 = P[B|A].
We want P[A|B], however. We can get it from Bayes' Rule, but we need to know P[A] and P[B].
Then:
P[A|B] = P[B|A] (P[A] / P[B]) = (2/3) ((1/2)/(1/2)) = 2/3
and the student who sees a red marble should bet on "red".
Common mistake: substituting P[A|B] for P[B|A] without correcting for (possible) difference between P[A] and P[B].