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