Can any one help me to fix this?

thanks
the first method it worked but i have a problem
when i enter number of zombies for both class for example 4 for both
it split the number i should have 8 zombies but it spaawn 4