Given,
The force with which the wagon is being pulled, F₁=7 N
The force with which the wagon is being pushed, F₂=4 N
The frictional force, f=3 N
The acceleration of the wagon, a=2 m/s²
The frictional force is a force that opposes the motion of an object. Thus the frictional force is in the opposite direction of the applied forces.
The net force on the wagon is given by,
![\begin{gathered} F_n=F_1+F_2-f \\ =7+4-3 \\ =8\text{ N} \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/r6hkrfzbyv4r0091y06v4zfi57yucqgmdt.png)
Thus the net force on the wagon is 8 N.
From Newton's second law, the net force on the wagon is given by,
![F_n=ma](https://img.qammunity.org/2023/formulas/physics/high-school/oiykjh3hxachy7dodsdv92i7wunpa06r85.png)
Where m is the mass of the wagon.
On substituting the known values,
![\begin{gathered} 8=m*2 \\ \Rightarrow m=(8)/(2) \\ =4\text{ kg} \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/ix5us7la63le23cqz8w1qm5e9bk5bg7157.png)
Thus the mass of the wagon is 4 kg.