I will first sketch the problem then solve
Below is the sketch of the problem in other to give a clearer understanding
Let x be the length of the slope down to the lake
Using the trigonometric ratio
cos θ = adjacent/hypotenuse
cos 5.1 = 12 462 / x
x = 12 462 / cos 5.1
x = 12 511. 53