The first side of a triangle is 2 inches less than twice the second side. The third side is 10 inches
longer than the second side. If the perimeter is 24 feet, find the lengths of the three sides.