Sanskrit (संस्कृतम्) is the classical language of Indian and the liturgical language of Hinduism, Buddhism, and Jainism. It is also one of the 22 official languages of India. The name Sanskrit means "refined", "consecrated" and "sanctified".
Marathi is an Indo-Aryan language. It is the official language of Maharashtra state of India and is one of the 23 official languages of India. There were 73 million speakers in Marathi has the fourth largest number of native speakers in India.
Above we see the Indian Constitution. India has 2 Constitutional languages(languages used in the Indian Constitution). India also has Has 22 8th schedule languages which are declared by their constitution. There are 23 official languages( because on english). There are 29 languages with more than a million speakers. Each state can choose their own official languages