What do you mean if you look at the system as a whole? See, when A pushes on B, B's body by virtue of having mass, will exert an opposite force on A. This is not him (or rather his hands) providing the force. This happens by virtue of B's mass or inertia. The catch is that at the same time another force is being applied on A, which as it so happens is by B again (by B's hands if you will). The solution is clear. I don't know why you're having so much trouble grasping this.