Claire has four hours to clean and x hours to cook.
The total number of hours she spends cleaning and cooking is: 4 + x.
She then divides the rest of her working day equally between crafting and tailoring.
The remaining hours in her working day are: 24 (total hours in a day) - 8 (hours she sleeps) - (4 + x) (hours spent cleaning and cooking) = 12 - (4 + x) = 8 - x.
She spends an equal amount of time crafting and tailoring, so the number of hours she spends crafting is: (8 - x) / 2 = 4 - (x / 2).
We are given that Claire spent 5 hours crafting, so we can write: 4 - (x / 2) = 5.
Solving for x, we get: x = 2.
The value of x is 2.
#### 2
The answer is: 2
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Claire is scheduling her day. She has four hours to clean and x hours to cook, then divides the rest of her working day equally between crafting and tailoring. She then sleeps eight hours. If all of this takes place within one day, how many hours did Claire spend crafting?
If we know the answer to the above question is 5, what is the value of unknown variable x?

### Answer:
