Two roommates, Asa and Bella, saved their wages from weekend jobs to buy tickets to a show. Asa earned $12 per hour, and Bella earned $9.75 per hour. Together they worked for 50 hours and earned exactly $528.
How many hours did each of them work?