A block of mass m is placed at the bottom of a massless smooth wedge which is placed on a horizontal surface. When we push the wedge with a constant force, the block moves up the wedge. The work done by the external agent when the block has a speed v and has reached the top of the wedge is