tom hanks taking a math exam