Diet and muscle mass
To gain weight you have to consume more calories than you are burning.
Do this in a healthy way though. Don't choose junk or fast food. Keep a well balanced diet
and make sure you are getting all the nutrients you need. Don't cut out exercise
as it is very good for you. Weight lifting and other muscle building exercises can help you increase your body mass.
Answer assisted by Holly Barth, Medical Student