. "Costs of investigation, prosecution, or claims collection which are performed by agencies other than the State agency shall be based on a formal agreement between the State or local agency and provider agency." . . .