Sam bought 12 boxes x $10 = $120 worth of highlighters.
He bought 12 * 30 = 360 highlighters in total.
Sam then took 5 boxes × 6 highlighters/box = 30 highlighters.
He sold these boxes for 5 * $3 = $15
After selling these 5 boxes there were 360 - 30 = 330 highlighters remaining.
These form 330 / 3 = 110 groups of three pens.
He sold each of these groups for $2 each, so made 110 * 2 = $220 from them.
In total, then, he earned $220 + $15 = $235.
Since his original cost was $120, he earned $235 - $120 = $115 in profit.
#### 115
The answer is: 115
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
What is the total amount of profit, in dollars, that Sam made after purchasing a dozen boxes, each containing 30 highlighter pens for $10 each, repackaging five of these boxes into sets of six highlighters and selling them for $3 per set, and selling the remaining highlighters individually at a rate of three pens for $2?

### Answer:
