diagram. The work done in AB