A canadian goose and a Great blue heron took off in opposite directions. The goose flew at 20 mph, and the heron flew at 10 mph. when they landed, they were 180 miles apart. Altogether, they flew for 14 hours. How long did each bird fly?