Let A, B and C be the variables representing the starting point of each segment.
The numbers in the table will be the DENOMINATOR in the coefficient of the respective variables.
The numbers 180, 240 and 400 will be the numbers needed to make the coefficients into integers in the respective equations.
Once that is done the system can be solved by several different methods, but in today's world the easiest and most direct thing to do would be to put the numbers into a spreadsheet which can invert the matrix almost instantaneously! In my opinion there is no excuse for solving messy systems of equations manually once you have seen how it can be done.