Given,
The mass of the object, m=2 kg
The applied force, F=15 N
The frictional force, f=5 N
The frictional force is a force that opposes the motion of an object. Hence it will be always be directed opposite to the direction of motion of the object.
The net force acting on the object is given by,
From Newton's second law of motion, the net force is given by,
Where a is the acceleration of the object.
Therefore,
On substituting the known values,
Therefore the acceleration of the object is 5 m/s²