Jane is 2 miles offshore in a boat and wishes to reach a coastal village 6 miles down a straight shoreline from the point nearest the boat. She can row 2mph and walk 5mph. Where should she land her boat to reach the village in the least amount of time?

I've never done optimization using time before. Any help is appreciated, thanks.