During a bake sale, Mia baked 18 cupcakes. After the sale, she realized that she had sold 7 cupcakes. How many cupcakes does Mia have left?