If Machine A makes a yo-yo every five minutes and Machine B takes ten minutes to make a yo-yo, how many hours would it take them working together to make 20yo−yos?

If Machine A makes a yo-yo every five minutes and Machine B takes ten minutes to make a yo-yo, how many hours would it take them working together to make 20yo−yos?