At least when it comes to Pythagorean theorem…
For a right triangle with sides a and b, and hypothnuse c:
a2 + b2 = c2
This means that given the a and b, we can compute c. For example:
a <- 3
b <- 4
c <- sqrt(a^2 + b^2)
c
[1] 5
Let me make it easier for you :)