If Samuel can type 40 words per minute, he can type
words in
minutes. So, the amount of minutes you're interested in is the solution of the equation
minutes.
Since 8750/60 is 145 with reminder 50, Samuel can type the required amount of words in 145 hours and 50 minutes.