Use the image to answer the question.
A pie chart shows the following distribution: A equals 8; B equals 12; C equals 5; D equals 3; F equals 2. Each segment of the pie chart shows a different pattern.
The image shows the results from a recent math test. How many students took the exam?
(1 point)