Best way to lose weight?

What’s the best way to lose weight kind of quickly? I mean like 30-40 pounds within 6 months. Give all advice about food, diets, exercise. Also is there a way to target certain areas, like thighs but not lose boobs?