"Old MacDonald had a farm." But on his farm, he only raised pigs and chickens - 48 of them all together. One day, he noticed that the total number of heads and wings was equal to the total number of feet. How many pigs and how many chickens did Old MacDonald have on his farm?