The attorney general shall consult with and advise county attorneys, when requested by them, in all matters pertaining to their official duties. The attorney general shall also, when required, give his or her opinion in writing, without fee, upon all questions of law submitted to him or her by the legislature, or either branch thereof, or by the governor, secretary of state, state treasurer, state board of education, or commissioner of insurance.
K.S.A. 75-704