I would change the 1 2/5 miles to a whole fraction which would be 7/5 miles then invert the 5/8 th to 8/5 then multiply the fractions. I.E. 7/5 x 8/5 which will give 56/25. Divide 25 into 56 and you get 2 6/25 miles or convert to a decimal and would be 2.24 miles.
I don’t know the answer but first you need to find the perimeter for each shape that is divided by the lines. I also provide a picture above with formulas to figure out the perimeter