Write a word problem about Wilfried buying stuff using this expression

x - 1/5x - 1/3(x - 1/5x) - 1/2[(x - 1/5x - 1/3(x - 1/5x)]
x = 180

bubble gum: 1/5 * 180 + 206 = 242
marshmallows: 1/2[180 - 1/5 * 180 - 1/3(180 - 1/5 * 180)] = 48
242 - 48 = 194

Result: Wilfried had 194 dollars.

He bought 180 dollars worth of bubble gum and then spent 1/5 of that amount on marshmallows. How much did Wilfried spend in total?