A small block of mass m is projected on a long plank of mass 3 m with velocity v0 as shown in figure. Find the work done by friction when slipping stops.