A student was assigned 40 math problems for homework. The student correctly answered 85% of the problems. How many homework problems did the student correctly answer?​