As much as it hurts for me to say, you should ignore those who say its c because they seem to be trolling and forget how median works...I forgot why I selected c but I agree the answer's d now
I don't mean to undermine how you feel after the exam, but I felt literally the same way after math advanced only to realise I made more mistakes than I thought. If you were planning on checking your answers, I'd suggest not to