Marx is the last name of Karl Marx, a German philosopher of the 1800s. "Marx" is a homophone of "marks". Marks can refer to written symbols, like checkmarks, made on a piece of paper to help signify what is right or wrong. The joke is playing on the word Marx and its homophone marks.
Are Philosophy papers graded with Marx out of ten ?