Jamie's grandfather has pigs and chickens. She noticed that there is a total of 26 heads and 68 feet among them. How many pigs and chickens does Jamie's grandfather have?