Ariz. Rev. Stat. § 31-238
F. If a person for whom a cost of incarceration can be calculated obtains a monetary judgment against this state and the attorney general appears and exercises the rights of this section, any monies set off against the monetary judgment shall be distributed as follows: