I have always followed an easy rule: "five or more raises the score". What it means is if the number is 5 or more, it goes to the next whole. Make sense?
The reasoning is 12+18=30 then you divide the amount of soldiers there is by the amount on toys in totality which is 12÷30 which is .4 convert to a percent which is 40%