If action is always equal to reaction then how a horse can pull a cart?

If action is always equal to reaction then how a horse can pull a cart?