Blake is a songwriter who collects royalties on his songs whenever they are played in a commercial or a movie. Blake will earn $
20 every time one of his songs is played in a commercial and he will earn $110 every time one of his songs is played in a movie. Blake earned a total of $530 in royalties on 13 commercials and movies. Determine the number of commercials and the number of movies on which Blake's songs were played.