Hailey is a songwriter who collects royalties on her songs whenever they are played in a commercial or a movie. Hailey will earn $30 every time one of her songs is played in a commercial and she will earn $100 every time one of her songs is played in a movie. Hailey's songs were played on 4 times as many commercials as movies and her total earnings on the royalties from all commercials and movies was $440. Determine the number of commercials and the number of movies on which Hailey's songs were played.