Is it possible to take two different language classes to meet the a-g requirements? ?

For instance, if I take mandarin for 1 year and Spanish the other then does that meet the a-g requirement?
3 answers 3