Question 1124780
This would be the least common multiple for both.
260, the product of both, always works.  The question is whether anything less does.  It doesn't.  Answer is 260.

240, 220, 200,180, 160, and 140 don't work.