sputtering and coughing as her body ejected as much water from her lungs as it could , the person swam her back towards the shore and quickly rolled her on her side allowing her to empty her filled lungs .