A kayaker can run along a straight shoreline at 5 m/s and paddle in still water at 3 m/s. Point A is on the shore, and point B is 800 m farther down the shore and 300 m offshore. The kayaker runs x meters from A along the shore before entering the water and paddling straight to B. Determine the value of x (to the nearest meter) that minimizes the total travel time.