Hannah buys ice cream and onions at the store

She pays a total of 35.16

She pays a total of 4.44 for the ice cream

She buys 6 bags of onions that each cost the same amount

Write and solve an equation which can be used to determine x, how much each bag of onions costs