This is what a math exam looks like from 1866