net force= the sum of all the forces acting on the object
the frictional force is opposite to the direction of motion of the object
If the object moves to the right (positive) then the friction force moves to the left (negative).
so the net force: 50 N - 5 N = 45 N (B)