On page 462 of my edition of "History of the theory of numbers, Volume II, Diophantine Analysis" by L. E. Dickson, Dickson credites Leonardo Pisano with the following Theorem:
"If three of the four numbers a, b, a - b and a + b are squares, the fourth is congruent."
The example $a = 16$, $b = 9$, $a + b = 25$, so 7 is congruent is given. While the statement is obvious if $a > b$ and $a, a - b$ and $a + b$ are squares, there need to be some restrictions though, as 8 and 50 are not congruent, while 0, 4 and 25 are squares (take a = b).
I am interested in this for the following reason: Considering certain matrices associated with parallelograms suggested, that if we consider an arbitrary primitive pythagorean triple $k^2 + l^2 = h^2$, both $k^2 + h^2$ and $l^2 + h^2$ are congruent numbers. This would indeed be true, if the above theorem could always be applied to this situation.
Unfortunately, I can neither read Italian nor Latin, so I cannot read the original or the commentary by Genocchi cited by Dickson.
Therefore I would like to have a reference to a precise general statement of this theorem with accompanying proof, whether a commented translation of the original source or a standard number theory text. Thank you!