The county shall pay all necessary expenses, including travel, incurred in the transportation of adult and juvenile prisoners to state correctional institutions. The county may be reimbursed by the state from funds appropriated for such purpose.
SDCL 7-12-22