Answer
Lord Mayo was the Viceroy of India when Hume was made secretary to the Department of Revenue, Agriculture, and Commerce. Hume had previously been a member of the Indian Civil Service, but he resigned from the service in order to take up the position of secretary to the department. Hume was responsible for overseeing the administration of the department, which was responsible for collecting revenue, managing agriculture, and promoting commerce.