Pythagoras triplet

how should i approach to this problem?

Refer this: