let the horizontal distance along the beach between the ray and the perpendicular be ... you are looking for

using the right triangle, the following relationship between and exists (why?) ...

or

take the derivative of either of the above equations w/r to time, sub in your given/calculated values and determine the desired rate of change.