Work is calculated as the product of Force, Distance, and angular motion. In this case, the work done by gravity is perpendicular to the motion of the cart, so θ = 90°
and W=Fdcosθ
W=35.0 N x 20.0 m x cos90
W=0 J
This means that work done perpendicular to the direction of the motion is always zero.