to find how many seconds will oass for them to blink at the same time we must find the minimun common multiple.
to find the minimum common mutiple we need to decompose both numbers into prime numbers like this
after this we multiply all the factors, without multiplying the ones that are both decomposition, in this case the multiplication will be
we only put 2 fives althought there is one five on the decomposition of 40
after that we find that
200 seconds have to pass in order for the lights to blink at the same time