# Square in triangle...

#### Wilmer

##### In Memoriam
Pythagorean triangle ABC with area 8214
has square DEFG with sides = 60 inscribed in it.
Side DE of the square lies on the hypotenuse.
Find the triangle's side lengths.
Code:
B

E

D

F

C         G                               A

#### Wilmer

##### In Memoriam
In case I lose it!
a = BC, b = AC, c = AB, d = square side
Formula:
d = abc / (a^2 + b^2 + ab)

Solution: a = 111, b = 148, c = 185

111 * 148 / 2 = 8214

Duh...