Final answer:
The work done by the force of friction is -8J.
Step-by-step explanation:
The work done by the force of friction can be calculated using the equation:
Work = Change in Kinetic Energy
Here, the kinetic energy of the block at point A is 15J and at point B is 7J. The change in kinetic energy is:
Change in Kinetic Energy = Kinetic Energy at B - Kinetic Energy at A = 7J - 15J = -8J
Since work is equal to the change in kinetic energy, the work done on the block by the force of friction as it moves from point A to point B is -8J.