Not clear with solution of problem

Not clear with last part of solution of problem

In solutions divisors of each number is calculated separately then

similar post
answered on that post