How can I lose weight

I crave carbs and fatty foods I’m 5’1 and weigh about 180-190lbs and want to be around 120-140 do you guys have any tips I’m 18 and I can’t really go out with permission ( overprotective parents ) and how long can it take to lose weight everyone is different Though Also I’m on birth control so I don’t know if that can affect and I might have endometriosis ( what doctors said ) and I just need tips since I’m constantly hurting maybe because the endometriosis so it’s hard for me to get around -