This is the only correct answer.
I've put on, and lost, 25 lbs probably 8+ times in my life (intentionally). I weigh 180 at my heavier end so that's a meaningful percentage for me. Depending how disciplined you are able/want to be, the easiest and most consistent way is to count calories.
If you don't want to be that strict, then just cut either your portions by 1/4 or remove a meal/snack that you estimate to be 250-500 calories. For me I just cut breakfast since I'm not really a breakfast person. Some people like to call this "intermittent fasting" and will give you an entire lecture about it's benefits. I call it "skipping breakfast".
Assuming you've cut 250-500 calories per day, weigh yourself every morning before any food/water. You should be losing 1-2 lbs per week, but it can fluctate so I would really look at 4-8 lbs per month as a reasonable target. If you are not losing that weight, you didn't cut enough calories, remove another 250/500 and try again.
On top of this do weight training and cardio, the type doesn't matter.
Good luck!