A boat leaves a dock at 2:00PM, and travels directly south at a speed of 20 miles per hour. Another boat is traveling towards the dock, from the west at a speed of 15 miles per hour. This boat will arrive at the dock at 3:00pm.

a) write a function for the distance between the two boats in terms of x, where x = the amount of time (in hours) since 2:00pm.

b) At what time were the two boats closest together?

Thank you so much for any help you can give me.