Rebecca bought 22 items for her camping trip, including tent stakes, packets of drink mix, and bottles of water.  She bought 3 times as many packets of drink mix as tent stakes.  She also bought 2 more bottles of water than she did tent stakes.  How many tent stakes did she buy? Let's think step by step and output the final answer after "####".
user
Let x represent the number of tent stakes
Drink Mix: 3x
Bottles of Water: x+2
Total: x+3x+x+2=22
5x+2=22
5x=20
x=<<4=4>>4 tent stakes
#### 4
Rebecca bought 22 items for her camping trip, including tent stakes, packets of drink mix, and bottles of water.  She bought 3 times as many packets of drink mix as tent stakes.  She also bought 2 more bottles of water than she did tent stakes.  How many tent stakes did she buy?
train