A point on the ground is 5m away from the foot of a vertical wall…