To find how much time the machine that took the longer job is, you would create an equation in terms of X, the amount of time it takes one of the machines.
Please see the attached picture for the work.
51 minutes is the longer time.
34 minutes for the other machine.