We know that Adam spends two-thirds as much money on lunch as Rick, so Adam spends (2/3) * x on lunch.
We are also given that Rick and Jose eat lunch of the same price, so Rick spends x on lunch.
The total cost of lunch for all three friends is the sum of the amounts spent by Adam, Rick, and Jose: (2/3) * x + x + x.
Simplifying, we get: (2/3) * x + 2x.
We are given that the cost of lunch for all three friends is 120, so we can write: (2/3) * x + 2x = 120.
Multiplying both sides by 3 to get rid of the fraction, we get: 2x + 6x = 360.
Combining like terms, we get: 8x = 360.
Dividing both sides by 8, we get: x = 45.
The value of x is 45.
#### 45
The answer is: 45
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
After working out for 3 hours, three friends go out for lunch. Adam spends two-thirds as much money on lunch as Rick. Rick and Jose eat lunch of the same price. If Jose ate lunch worth x, what is the cost of lunch for all three?
If we know the answer to the above question is 120, what is the value of unknown variable x?

### Answer:
