A pole of actual height, H, 3.1m casts a shadow of 1.25m
Let the height of the building be x which casted a shadow of height 50,25m
The ratio of the actual height to the shadow height of the pole is

The ratio of the actual height to the shadow height of the building is

The proportion of both ratio is

Crossmultiply to find the value of x

Hence, the height of the building is 125m (nearest meter)