You can put this solution on YOUR website! Assume they take t hours to finish together
Potion of work done by Frank in t hours = t/2;
Potion of work done by James in t hours = t/5;
Together they complete the entire job (1 job)
=> t/2 + t/5 = 1
=> 7t/10 = 1
=> t = 10/7 hours
Answer: 1 and 3/7 hours