how do I work out the molecular mass of a substance such as oxide of arsenic? If I'm trying to work out the oxide part of this problem, where does hydrogen come into it?

You have to know the mass, and how many moles. There are other methods.

Hydrogen? Depends on the problem.