15 mins = 900 s
We need to find all common multiples of 18 and 42 less than or equal 900.
We'll find the least common multiple first.
18|2
9|3
3|3
1
42|2
21|3
7|7

Now, we nned to find all multiples of 126 that are less than or equal 900.
Those are 126,252,378,504,630,756,882. There are 7 of those.
Therefore the answer is
7.