She was gone for 12 hours. She spent 5 hours on a side trip. Therefore her time traveling to and from Rome was 7 hours. x will be time spent from Rome. y is the time spent going back to Rome.
equation number one is x+ y = 7
distance going = 80 • x
distance going back = 60 • y
These two distances are the same
equation 80 x = 60 y. Rewrite as
80 x - 60 y = 0
x + y = 7. Solve this system, multiply this equation by 60 then add the equations
80x - 60y = 0
60x + 60y = 420. Result is
140x = 420. Divide by 140
x = 3 then y = 4
80 • 3 = 240
60 • 4 = 240 the distance from Rome