Try communicating with the diver with calming and reassuring signs looking them straight in the eyes with confidence that says you know what you're doing. Establish buoyancy for them if they are quickly ascending or descending. Check the divers gauges to determine whether they are actually out of air, if they are lock arms with the diver and give them your octopus, purging it for them once it's in their mouth.Once the air situation is solved, work on getting the diver safely back to the surface by, locking arms with them and making them ascending with you at a safe rate.