I need to lose 50 pounds

For those of you who have lost a big amount of weight like 50 pounds how did you do it? What kinds of foods did you eat and how often?

Also what did you do for exercise if you did exercise.