John and Mary are planning a road trip. John drives at an average speed of 60 miles per hour, while Mary drives at an average speed of 50 miles per hour. If they drive a total distance of 330 miles and John drives twice as many hours as Mary, how many hours does each of them drive? Let's think step by step and output the final answer within \boxed{}.
user