IC 36-2-13-2.5 and IC 36-2-13-2.8 prescribe two methods of paying the compensation of the sheriff. Under section 2.5 a contract is entered into and the contract would specify the amount of compensation, which does not have to be based on the prosecutor's compensation. Under section 2.8, the sheriff is paid based on a percentage of the prosecutor's pay. The percentages that apply are stated in this section.