You are given a math word problem and you are supposed to apply multiple mathematical operators like addition, subtraction, multiplication or division on the numbers embedded in the text to answer the following question and then only report the final numerical answer.

For homework Nancy had 17 math problems and 15 spelling problems . If she can finish 8 problems in an hour how long will it take her to finish all the problems ?
4