This question was asked in Ex 1.2, 7
Why we use lcm

Vaibhav Gupta's image