Tata Motors, India's top automaker by revenue, and Mahindra & Mahindra Ltd, the country's largest utility vehicle maker, agreed to invest 40 billion rupees each, according to a statement issued by the Maharashtra government on Thursday.