The cart has wheels on both the ruler and the tabletop, fixed to the same axles. The cart cannot roll without sliding unless the ruler moves relative to the tabletop.
If we assume (quite reasonably) that the friction of the wheels is sufficient to prevent the wheels from slipping then, as the ruler moves forward at velocity v, the cart also moves forward at velocity 2v.
If that's not clear then maybe we should start with a simpler machine like a cotton reel.
A reel can be rolled towards the hand applying F, but may also turn counter-clockwise (CCW), and roll away from the hand.
Assuming that the force is applied parallel to the floor ( no lifting of the reel), which way will it go?
a = inner radius
b = outer radius
Fd = Friction
F = Applied force
m= reel mass
I = reel moment of inertia
v= linear velocity
w = angualr velocity (radians/sec)
Linear component:
Net force to the right = F - Fd
Acceleration dv/dt = F - Fd/m
Angular Component:
Net clockwise (CW) moment = b*Fd - a*F
Angular Acceleration dw/dt = (b*Fd - a*F/)I
When a wheel rolls with out sliding ( pure rolling) the axle of the reel moves a distance equal to the cirumference. So the linear velocity (the speed the axle moves) and the angular velocity ( the speed it turns) are related by (it travels 2pi*r with each turn)
v = b*w
The linear and angualar acclerations are related as:
dv/dt = b*dw/dt
From a = f/m
(F - Fd)/m = b(b*Fd - a*F)/I
Rearranging to relate Fd in terms of F
Fd( I + mb^2) = F( I + mab)
Fd = F(I + mab)/(I + mb^2)
If the reel moves to the right, then both the linear and angualr forces will be positive (to the right). That depends on the friction to the surface and how the force is applied.
If pulled slowly, the reel will tend to roll with the hand, but a jerk will send it away. It's a balance of the inertia of rotation and the frciton to the surface, where the angular component is either positve or negative.
There is a third case, where there reel does not roll, but slides, so the angualr component is zero. That may happen when the fricion is very low. Wheels cannot roll without adeqaute friction.