The perimeter of a triangle is 28 ft. The medium side is 4 ft longer than the shortest side,while the longest side is twice as long as the shortest side. What are the lengths of the three sides?