A woman bought some large frames for ​$18 each and some small frames for ​$6 each at a closeout sale. If she bought 27 frames for ​$258​, find how many of each type she bought.