Which Law of Motion is this example of You fire a cannon and the cannon moves backwards 3 meters after the cannonball shoots forward

This example illustrates Newton's third law of motion: for every action, there is an equal and opposite reaction. When the cannonball shoots forward, the cannon experiences a recoil or backward motion.