Other than "doing more work", I'd recommend talking to your teachers in those subjects. Ask them how you can improve, and what areas are causing you to be a grade below an A/B student.
Also, (don't rely on this but) a lot of "requirements" are at least a bit flexible. A lot of AAB offer courses would probably let you in with ABB, or lower.