Let x = # of candy bars sold

y = # of funnel cakes sold

z = # of sodas sold

All three of the items were sold for $540; although, it's confusing because you then say all three items were sold for $20? "...three times as many"... Perhaps I am misreading this, but can you write the word problem out exactly as it is given to you?