My baby didn't make it

We were going on 22 weeks. We had a doctors appointment and the baby's heart had stopped beating. They induced labor. My poor babygirl was dead. It is really tough. I want to help my wife but there is nothing I can do to go back and change what happened. It's really sad. We had so many hopes and dreams for her but that is all gone now. Her name was Sofia.