Mason is a songwriter who collects royalties on his songs whenever they are played in a commercial or a movie. Mason will earn $30 every time one of his songs is played in a commercial and he will earn $80 every time one of his songs is played in a movie. Mason earned a total of $470 in royalties on 9 commercials and movies. Write a system of equations that could be used to determine the number of commercials and the number of movies on which Mason's songs were played. Define the variables that you use to write the system

Let's define the variables:

Let C be the number of commercials on which Mason's songs were played.
Let M be the number of movies on which Mason's songs were played.

We can now set up the system of equations:
Equation 1: $30C + $80M = $470 (the total amount of royalties Mason earned from commercials and movies)
Equation 2: C + M = 9 (the total number of commercials and movies Mason's songs were played on)