The cart is in equilibrium since it's moving at a constant velocity. This means the net horizontal force on the cart is 0, so the frictional force and pulling force cancel one another. So the pulling force has magnitude 12 N, same as the frictional force.