So, here you have to look at the periodic table and see what the molar mass of each molecule composing the water compound

its two hydrogen atom plus an oxygen molecule, making it about 18g per mol.
That said, looking at the mass, we have to ask ourselves, if a mol of water contains 18g of mass, how many moles do we have in 0.5g of water?
We just do a cross multiplication:
To find the inverse all you do is swap your x and y then solve it through. for this one you gotta take f(x) and make it y
y = 1/4x - 12
then swap
x = 1/4y - 12
then solve it through
x - 12 = 1/4y
divide by (1/4)
and (x - 12)4 = y should be your answer
Yes I love this problem so good