find the work done (in joules)