Usually, two mechanisms work together to complete a certain task. Their efficiencies are not the same, and when working together, they complete the task in 30 hours. Once, the two mechanisms worked together for only 6 hours, after which the first mechanism was stopped, and the second mechanism completed the remaining part of the task alone in 40 hours. How long would it take each mechanism to complete the same task individually with its own efficiency?