A ladder AB, 2.5 m long and of weight 150 N has its centre of gravity 1 m from A is lying flat on ground. A weight of 40 N is attached to the end B. The work required (in joule) to raise the ladder from the horizontal position to vertical position so that the bottom end A is resting in a ditch 1 m below the ground level will be :