Calculate the work if the force equal 6 and the displacement is 2

If and ONLY IF the force is in the direction of the motion

then
W = F dot D = 6 * 2 Joules
assuming you mean 6 Newtons and 2 meters
If your book gave your this problem in this lazy form, burn it.