From the result of part a), we know:

Using the Pythagorean theorem, we may state:

where is the distance from the point directly below the lamp that Olav is at at time .

If midnight is set to time , then we have:

where

Thus:

and so:

and thus, we find: