10,254 toy trucks and 3*10,254=30,762 cars in total.
10,254/35=292 full boxes and 34 remaining ones.
30,762/35=878 full boxes with 32 trucks remaining.
And if each box can contain both types at once then the total 41,016 divided by 35 gives us 1171 full boxes and only 31 remaining toys.
Hope could help!