He wanted to give the right answer.
He wished to be correct.