You have 40 minutes to finish 18 math problems for homework. Write and solve an inequality that represents how many minutes you can spend per problem.