All training costs must be allocated to the benefiting title IV-E foster care, adoption assistance or guardianship assistance program and other State/Tribal/Federal programs consistent with the State's CAP or Tribe's CAM and in such a manner as to ensure that the cost is charged to the program in accordance with the relative benefits that the program receives from the training.