Machine A produces bolts at a uniform rate of 120 every 40 seconds, and Machine B produces bolts at a uniform rate of 100 every 20 seconds. If the two machines run simultaneously, how many seconds will it take for them to produce a total of 200 bolts?