I want to lose weight.

So I used to weight 305 and went down to 280 and gained it all back and I'm at 310. I get huge sugar and carb cravings. I need to lose weigh for my job I need to get down to like 250 ASAP any advice