Answer:
Through the equation a^2+b^2=c^2.
Explanation:
If lengths are in a right triangle, they fit the equation above. "a" and "b" are the shortest sides while "c" is the longest side. If the equation works and is equal on both sides, the triangle is a right triangle.