On four plays, a football team gained 22 yd, lost 18 yd, gained 8 yd, and lost 14 yd. What is the total number of yards gained or lost on the four plays?