We know that the motor has delivered 800J to the vat. Some of this will have been lost to friction while the rest will be kinetic energy. We now find the amount of energy lost to friction:
Now we subtract the energy lost to friction and find the speed from the remaining energy which is all kinetic.