Weight loss and muscle gain

Mari👾 • Mommy to a beautiful baby girl👑 wife to my best friend💍💑 Latina🇬🇹🖤

Quick question can you lose weight and gain muscle? Or should I just focus on losing fat and then gaining muscle? Idk what to do lol i want to lose 30 pounds but I don’t want to lose muscle while doing it. Someone help!!!