Suppose that a teacher agrees to pay a student 9¢ for every problem in this chapter that the student solves correctly, and fines the student 5¢ for every problem done incorrectly. If at the end of 42 problems they do not owe each other any money, how many problems did the student solve correctly?