If the sides of a quadrilateral are in the ratio of 3:5:7:9 and the perimeter is 240 inches, find the length of each side