The force on the object is horizontal.
from graph we can see that the force on the particle after moving 6.0m is,
the work done by the force is,
substituting we get,
change in kinetic energy is,
we get this from work energy theorem.
Here v=8.0m/s
so by substituting we get,
Hence the mass of the object is 7.5kg.