We need the next instances when the alarm rings.
That means the Least common Multiple (LCM) of 3,4,8,10,12
3,4 divide 12 so neglect them.
LCM of 8, 10 and 12
After starting, they ring together First time in 2 hours.
The second time in 2 + 2 = 4 hours
Then third time in 6 hours.
And fourth time in 8 hours.