The ratio of the measures of the sides of a triangle is 5:7:8 and has a perimeter of 320 inches. What is the measure of each side?