Martha went to the movies. She purchased some $14 movie tickets and some $12 movie tickets. She purchased a total of 9 tickets for $114. How many of each type of ticket did she buy?