Given that a farmer bought a number of pigs for $ 160, but, however, 8 of them died before he could sell the rest at a profit of 6 per pig, and his total profit was $ 8, to determine how many pigs did he originally buy the following calculation must be performed: