We know that x% of the students who attended class wore colored lipstick. So the number of students who wore colored lipstick is (x/100) * 200.
Of those students who wore lipstick, one quarter wore red lipstick. So the number of students who wore red lipstick is (1/4) * (x/100) * 200 = (x/400) * 200.
There were one-fifth as many students wearing blue lipstick as were wearing red lipstick. So the number of students who wore blue lipstick is (1/5) * (x/400) * 200 = (x/2000) * 200.
We are given that the number of students who wore blue lipstick is 5, so we can write: (x/2000) * 200 = 5.
Simplifying the left side, we get: (x/10) = 5.
Multiplying both sides by 10, we get: x = 50.
The value of x is 50.
#### 50
The answer is: 50
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
On national lipstick day, x% of the students who attended class wore colored lipstick.  Of those students who wore lipstick, one quarter wore red lipstick.  There were one-fifth as many students wearing blue lipstick as were wearing red lipstick.  If 200 students attended school that day, how many wore blue lipstick?
If we know the answer to the above question is 5, what is the value of unknown variable x?

### Answer:
