Answer:
Equal
Step-by-step explanation:
The impulse theorem states that the impulse exerted on each cart is equal to the change in momentum of the cart:

where
I is the impulse
pf is the final momentum
pi is the initial momentum
The impulse is equal to the product between the force applied and the contact time:

In this case, the force applied to the two carts (F) is the same, and the contact time (
) is the same as well. Therefore, the impulse exerted on the two carts is the same.
Moreover, the initial momentum of the two carts is also the same (zero, because they start from rest:
). So the formula becomes

And since I is the same for the two carts, the final momentum (
) will also be equal.