How do you handle finding out a friend is pregnant when you’ve been trying?

I’m trying so hard to be positive for her but she wasnt trying, literally just met the guy infact. My husband and i have been trying for 2 years now, after a miscarriage and many long months of trying i feel crushed by the news. I dont want to be a mean jealous person but i cant help but feel so sad right now, how do you ladies do it?