Given that the mass of the toy cart is 2.0 kg and and the acceleration is unknown, the normal formula would be a=f/m where a is acceleration, f is force and m is mass but the string's breaking strength is 40n so I think the formula in this case will be f is greater than m*a
40 is greater than 2a
40 is greater than 2a
40/2 is greater than 2a/2
20m/s² is greater than a
Therefore the maximum speed the toy cart should have should be less than 20m/s²