mr. smith has a maximum of $50 to spend at a museum. a ticket to the museum costs $7. he can spend p dollars to buy other things at the museum. write the inequality that can be used to find the values for p and solve for p.