; and (B) provides an assurance that the State will provide the matching amount required under subsection (g). (f) Use of funds by State (1) In general In accordance with this subsection, the total of the amounts made available to a State under this section and the amounts of the non-Federal match required under subsection (g) may only be used by a State to make grants to local educational agencies to assist such agencies in hiring additional school-based mental health and student service providers. (2) Administrative costs In each fiscal year, a State may use not more than 5 percent of the assistance made available to it under this subpart for the administrative costs of the State in carrying out the State’s responsibilities under this subpart. (3) Allocation of funds In making grants in accordance with this subsection, the State shall allocate from the total described in paragraph (1) to each local educational agency an amount equal to the sum of— (A) an amount that bears the same relationship to 50 percent of such total as the number of children in poverty who reside in the school district served by the local educational agency bears to the number of such children who reside in all the school districts in the State