What happens if my air runs out?

You will be taught how to check your air regularly, so you can see if it is running out, but if this was to happen, which is unlikely, then your instructor will have an extra regulator that will supply air to you while you both swim to the surface.