John works two jobs. As a security guard he earns $8.75 per hour. As a landscaper he earns $14.00 per hour. One week John worked a total of 30 hours and earned $283.50. How many hours did he work at each job?