A boat heads north at 30 mph while a steamer heads east at 40 mph at the same time. When is the distance between them 50 mi?