Looks like the “3” should be a “4” as in a 3-4-5 triangle.
Yep. I’d give the student a “pass” for providing a benevolent answer to a badly presented problem. (Instead of calling the teacher a rightly-deserved dipsh!t.)