Let the first length and the second length.

The two lengths add up to 360 inches, so .

One length is five times the length of the other, so .