Dorothy spent $x to buy doughnut ingredients.
She made 25 doughnuts and sells each for $3, so her total revenue from selling doughnuts is 25 * $3 = $75.
Profit is calculated by subtracting the cost from the revenue, so her profit is $75 - $x.
We are given that her profit is $22, so we can write: $75 - $x = $22.
Solving for x, we get: $x = $75 - $22 = $53.
The value of x is $53.
#### 53
The answer is: 53
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Dorothy spent $x to buy doughnut ingredients. If she made 25 doughnuts and sells each for $3, how much was her profit?
If we know the answer to the above question is 22, what is the value of unknown variable x?

### Answer:
