The perimeter of a triangle is 59 in. The shortest side is 10 in. less than the longest side. The middle side is 21 in. less than the combined lengths of the
shortest and longest sides. Find the lengths of the three sides.