first, we can use pythagorean theorem
5^2+2^2=y^2
25+4=y^2
29=y^2
√29=y
they are sides in ratio of
5:2:√29
and the big one is
z:√29:x+2
5:z=2:√29
5/z=2/√29
hmm
times right side by 2/2 and left side by 5/5
10/2z=10/5√29
2z=5√29
z=2.5√29
√29:x+2=2:√29
√29/x+2=2/√29
multiply both sides by √29
29/x=2
times both sides x
29=2x
divide both sides by 2
10.5=x
x=10.5
y=√29
z=2.5√29