In my youth I solved a simple Pythagoras problem. From the famous equation a^2 + b^2 = c^2 . How can you find formulas to quickly calculate a,b and c if you want integer solutions?

My approach was to use a geometric description of the problem. Like this.

See if you can find some formulas.