Let's begin by identifying key information given to us:
Let's assume that the price of masks is x
The price of a box of masks tripled = 3x
If the sum of the price of a box of mask before the outbreak and the price of a box after the outbreak totals $ 24.00, we have:

Before the outbreak, a box cost $6
After the outbreak, a box cost $18