Underweight

So I'm 5'1 and weigh 90 pounds, how do I gain weight? I've tried eating a bunch of fatty foods it doesn't work so don't tell me to just eat.