At a local bakery, Jenna baked a batch of muffins and a batch of cookies. The muffins cost $2 each, while the cookies cost $3 each. If Jenna sold a total of 30 items and earned $72 from the sales, how many muffins did she sell?