a ladder which is place against a building

whose height is 40 metres should have a base of?

Use the 4 to 1 rule.

This base should be 10 meters.

http://www.sc.edu/ehs/modules/Ladders/ladder.htm