Correct option is B
The Advocate General is the highest law officer in a state and is appointed by the Governor. He/she advises the state government on legal matters and performs similar functions for the state as the Attorney General does for the Union Government.
Article 165 of the Constitution of India provides for the office of the Advocate General for the State.
The Advocate General's duties include:
Giving advice to the state government upon legal matters.
Performing any other legal duties as assigned by the Governor or state government.