Items bought:
x packs of pencils
twice as many packs of erasers, number of packs of erasers = 2x
three times as many rolls of tape, number of rolls of tape = 3x
Now, we have two possible scenarios:
1- The three items cost the same:
cost of one pack of pencils = cost of one pack of erasers = cost of one roll of tape = m
total amount spent = xm + 2xm + 3xm = 6xm
2- The three items do not cost the same:
cost of one pack of pencils = m
cost of one pack of erasers = n
cost of one roll tape = p
total amount spent = xm + 2xn + 3xp = x(m + 2n + 3p)