A woman bought some large frames for $14 each and some small frames for $5 each at a closeout sale. If she bought 24 frames for $165, find how many of each type she bought