Definition: You are given a mathematical question described with an open-ended vocabulary. Questions in this task involve real-world situations, describing a mathematical problem. You are also given 4 or 5 answer options (associated with "A", "B", "C", "D", "E"). Do not generate anything else apart from one of the following characters: 'A', 'B, 'C', 'D', 'E'. LaTeX mathematical format (the standard way to express mathematical expressions in the typesetting software known as LaTeX) is used to express equations. Each question is solvable with high school math knowledge. Give only one answer for each question.
Input: Theresa is comparing the length of four magazine articles. The first article begins on page 1 and ends on page 7. The second article begins on page 17 and ends on page 24. The third article begins on page 28 and ends on page 31, and the fourth article begins on page 52 and ends on page 56. What is the median number of pages in these articles?
(A)4 (B)5 (C)6 (D)7 (E)8

C