A triangle has sides 10, 17, and 21. A square is inscribed in the triangle. One side of the square lies on the longest side of the triangle. The other two vertices of the square touch the two shorter sides of the triangle. What is the length of the side of the square?  Choose the correct choice from the following choices.
A) 148/29	B) 168/29	C) 168/26	D) 158/29	E) 198/29
By Heron's Formula, the area, A, of a triangle with sides a, b, c is given by A = square root[s(s − a)(s − b)(s − c)], where s = ½(a + b + c) is the semi-perimeter of the triangle.   Then s = ½(10 + 17 + 21) = 24, and A = 84.   A square inscribed in a 10 by 17 by 21 triangle, with perpendicular dropped onto the side of length 21.   Now drop a perpendicular of length h onto the side of length 21.   We also have A = ½ × base × perpendicular height.   Hence A = 21h/2 = 84, from which h = 8.   Notice that the triangle above the square is similar to the whole triangle. (This follows because its base, the top of the square, is parallel to the base of the whole triangle.)   Let the square have side of length d.   Considering the ratio of altitude to base in each triangle, we have 8/21 = (8 − d)/d = 8/d − 1.   Therefore the length of the side of the square is 168/29.   ANSWER:168/29
<result>B</result>
A triangle has sides 10, 17, and 21. A square is inscribed in the triangle. One side of the square lies on the longest side of the triangle. The other two vertices of the square touch the two shorter sides of the triangle. What is the length of the side of the square?