plz help fast :3

A quiz has 40​ questions, with 10 questions worth 1 point each and 30 questions worth 3 points each. Amanda had no more than 30 points subtracted from the total possible points. Write an inequality that shows the possible​ points, p, that Amanda earned.