Old MacDonals raises chickens and sheep on his farm. His livestock has a total of 55 heads and 142 legs among them (not counting the farmer). How many chickens and how many sheep does he have