Three candles which can burn, 60 minutes, 80 minutes and 100 minutes respectively are lit at different times. All the candles are burning simultaneously for 30 minutes, and there is a total of 40 minutes in which exactly one is burning. For how many minutes are exactly two candles burning?