The forces are equal in both directions. The momentum of the
shot is also equal to the
momentum of the cannon in the other direction.
The backward velocity of the cannon is:
(forward velocity of the shot) times (mass of the shot) divided
by (mass of the cannon).