You get this because if 9 worms are born they are coming into the population then you would do -5 because they died and were taken away from the population then move to -10 and this was because they emigrated out of the population and into another then finally you have the +8 because they immigrated into the population