The statutory cash bail agreement permits application of cash bail to the whole of a defendant’s public-defender costs. However, a court may retain cash bail to pay most other fines, costs, and fees only after considering the defendant’s ability to pay.