I'm trying to check the answer for these 2 questions
1. You are in a rowboat two miles from the nearest point on a straight shoreline. You noticed smoke billowing from your house, which is 6miles along the shoreline from the nearest point. You can row your boat 6 miles per hour and you can run then miles per hour. How should you proceed in order to get to your house in the least time?
2. What if the house is ten miles away from the nearest point and I can use a motorboat that travels 8mph or run at 5mph?
I need the function, derivative, and critical points for it.