Switching from Spanish to Mandarin for sophomore year of high school

The former.

Additionally, level 2 of Spanish plus level 3 of Mandarin means you will speak no foreign language well. If your college has a foreign language requirement for graduation, you’d be better served learning as much of the foreign language before college to minimize the course you need to take in college.