Answer:
The same
Step-by-step explanation:
The change in momentum of each cart is equal to the impulse given by the force applied on the cart:

where
F is the force applied
is the time during which the force is applied
The force applied to both carts (F) is the same, as well as the time (
). This means that the change in momentum,
, is the same for both carts. But both carts start from rest (momentum = 0): this means that at the end, both carts will have exactly same momentum.