Solving for mass, moles, volume, and molarity