In a class of 50 students, 28 participate in MATHCOUNTS, 27 participate in science club, and 2 students participate in neither. How many students participate in both MATHCOUNTS and science club?