The field hockey team is holding several fundraisers to save up enough money to buy team jackets. Washing cars earns $9 per hour and babysitting earns $16 per hour. Together the team members worked a total of 21 hours and earned $294.

How many hours did the team spend washing cars? How many hours did the team spend babysitting?