Bethany is working her way through school. She works two part-time jobs for a total of 23 hours a week. Job A pays $5.70 per hour, and Job B pays $7.10 per hour. How many hours did she work at each job the week that she made $143.70.