The second side of a triangle is 7 inches more than the first side. The third side is 4 inches less than 3 times the first. The perimeter is 28 inches. Find the length of the three sides of the triangle.