The grades of the 7th grade students in Ms. Marshall's homeroom for Math and Science are displayed in the box plot below.

Which of the following statements is true?
A.
the grades in science have a higher median than in math
B.
medians of both science and math cannot be determined
C.
both the science and math have the same median
D.
the grades in math have a higher median than in science

D. The grades in math have a higher median than in science.