The perimeter of a triangle is 28ft. The medium side is 4ft 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?