Weight

I've lost a lot of weight in the past 6 months due to over stressing, and I want to work out and get my body where it needs to be but I'm so scared it will make me lose even more weight. I guess I just need a work out routine that will help me gain weight? Ugh I'm so lost when it comes to Exercise stuff ! Someone please help !