A women bought some large frames for $16 each and some small frames for $9 each at a close out sale. If she bought 16 frames for $165, find how many of each type she bought.