A salesman at T-Mobile earns $12 for each phone he sells as well as an hourly salary of $18. Write and solve an inequality to determine the number of phones he must sell to earn $1000 in a 45-hour week.