A retailer spent $48 to purchase a number of special mugs. Two of them were broken in the store, but by selling each of the remaining mugs for 43 above the original cost per mug, she made a total profit of $22. Construct a quadratic equation that will allow us to solve for the number of mugs, denoted by n, that were originally purchased.