Benecio worked 40 hours at his two jobs last week. He earned $20 per hour at his weekday job and $18 per hour at his weekend job. He earned $770 in all. How many hours did he work at each job?

Please tell me the system of equations as that's what I need to solve it. Thanks!