Pythagoras triplets

can’t understand that how can one variable input and this condition give the 2 other possible triplets

hey @Arshabh given a triplet (a, b, c) if they satisfy a^2 + b^2 = c^2 they are called pythagoras triplet, triplets usually take the value in the form of (m2-n2, 2mn, m2-n2), So in this you are given an input which is either the first or second value of the triplet and you have to find the third.