I think the teacher should let the student have it just for creativity. Though the kid must be stupid and obviously doesn't know his pythagorean triples making the answer obviously 5, but I digress.