Question 1191947
5----60-----45
-----12------9
3---12-------9
-----4-------3

Take the outer factors
5*3*4*3=180 days before they are both free, 3 cycles for the 60 day one and 4 cycles for the 45 day one.