The situation makes use of the Newton's Third law of Motion, which states that:
" For every action, there is an equal and opposite reaction. The statement means that in every interaction, there is a pair of forces acting on the two interacting objects."
I hope my answer has come to your help. God bless and have a nice day ahead!