The resultant of two forces acting on a body is zero if the forces are:
Equal in magnitude and opposite in direction.
When two forces acting on a body are in opposite directions, resultant force is equal to the difference between the two forces and acts in the direction of the larger force. Thus, resultant will be zero if the two forces are equal in magnitude and opposite in direction.