The subject code for CBSE 12th-grade Sanskrit core is 322 and code for elective is 022.