We can see in the attached figure the free body diagram of the cart and we replace the data in formula (1), considering that positive forces are the ones that go in the same direction of acceleration:
Resultant force = mass × acceleration, therefore acceleration = resultant force ÷ mass Resultant force = 19 - 1.7 = 17.3 N acceleration = 17.3÷2= 8.65 ms-2