Scientists say they have the solution for a problem gym-goers have when they combine endurance and weight training.