If you tell someone that their answer is wrong then you need to give your reason for thinking so:
For instance,
Thanks for the time you spent helping me CPhill but I think you answer is wrong because my teacher tells me that the answer is 42.
That is just an example of what you might write.