Spanish 4 online and Pre calc in person or vice versa

If I drop Ap physics I’ll probably just take it next year. Ap chem on the other hand I probably won’t be able to bc it’s a two hour class and I really want to take this certain program that takes up like two hours of my schedule and with my other classes I plan to take it just won’t work. I could just drop Spanish but not sure if that be worth it.