Matter means the things that occupies space and has a mass.
So from this rule, we can identify the things given.
Toothpaste is a matter.
Happiness is not matter, it doesn't occupies space.
Gasoline is matter.
Sound doesn't have a mass, so it's not matter.
Bacteria is matter, it's one of the organisms in the 5 main kingdoms. It has a mass and it dies occupies space even its so small.
Cell is matter, because every living thing is made up of cells.