Answer=420seconds
To solve this problem, we must solve for the least common multiple of these three numbers. We do this by first finding the prime factorization of each number.
Prime factorization of 12 = 2 2 3 = 2² 3\(^{1}\) 5\(^{0}\)
Prime factorization of 30 = 2 3 5 = 2\(^{1}\) 3\(^{1}\) 5\(^{1}\)
Prime factorization of 42=237=2\(^{1}\)3\(^{1}\)7\(^{1}\)
Using the set of prime numbers with the highest exponent value we get:
LCM=\(2^{2} *3 ^{1} *5 ^{1} *7 ^{1} =4*3*5*7=420\)
It will take 420seconds for the planets to be aligned again.