A passenger ship leaves port sailing east at 14 mph. Two hours later, a cargo ship leaves the same port heading north at 10 mph.
(a) Find a function giving the distance in miles between the two ships t hr after the passenger ship leaves port.
D(t) =
if 0 ≤ t ≤ 2
if t > 2