Complex sentence: In 1940 she went back to Rainhill Mental Hospital in Lancashire and she was working there and living with her son, when she died of cancer aged 77.
Split into simpler sentences: In 1940 she went back to Rainhill Mental Hospital in Lancashire. She was working in Rainhill and living with her son in Lancashire, when she died of cancer aged 77.