Right Triangle, with legs a and b
P=x+y+((x^2+y^2)^(1/2))
x and y= the lengths of the two legs of the triangle