A woman bought some large frames for $16 each and some small frames for $7 each at a closeout sale. If she bought 24 frames for $240, find out how many of each type she bought.