Remember, for any right triangle, the hypotonuse is always longer than the 2 legs
if the legs are length a and b and the hypotnuse is c then
a²+b²=c²
test each
1.
7²+24²=25²?, 49+576=625? yes, this works
12²+15²=20?, 144+225=400?, no
9²+11²=14?, 81+121=196? no
15²+18²=21²? 225+324=441? no
first one is answer, 7 24 25
2.
9²+40²=41?, 81+1600=1681? yep
12²+15²=20²? 144+225=400? nope
2²+3²=4²? 4+9=16? no
8²+9²=10²?, 64+81=100?, no
answer is first one or 9,40,41