Reference zero is the point directly below the screen height of 50ft/15m.

This is the starting point!

So at 5000m we will have gained 250m on a gradient of 5% but we started at 15m so my height above the ground is 265m.

The obstacle height is 160m giving a clearance of 105m