The longest sides of a rectangle are 3 inches less than six times the length of the shorter sides. The perimeter of the rectangle is 50 inches. Find the measures of the sides of the rectangle.