The Pythagorean theorem is A^2+B^2=C^2
For your problem you would do 29-7 as we are trying to find X. So we need to create a right triangle in order to do this.
Now we have two out of the three sides, 25 and 22.
25^2= 625
22^2= 484
Now add them 625+484=1109
Now find the square root of 1109
33.301651 (round to whatever decimal point as needed)