A restaurant worker server earns a base salary of $6 per hour plus tips. If he averages $12 per hour in tips, how many hours must he work to earn a total of $333?