charter school network or system, a charter school, a charter or education management organization, or an official or employee of any such agency, school, system, or organization the funds shall be distributed from the Trust Fund to the State educational agency in the State in which the intended student beneficiaries of the qualifying money are located. (2) In the case of funds deposited under subsection (c) related to the misuse of qualifying money by a responsible party that is a State educational agency or an official or employee of a State educational agency, the funds shall be distributed from the Trust Fund to the Secretary of Education. (3) In any case not described in paragraph (1) or (2), the funds deposited under subsection (c) related to the misuse of qualifying money shall be distributed from the Trust Fund to the Secretary of Education. (e) Allocation of funds from the Trust Fund (1) State educational agencies (A) In General Subject to subparagraph (B), a State educational agency that receives funds in accordance with subsection (d)(1) shall allocate such funds to each local educational agency in the State in an amount that bears the same relationship to the total funds described in subsection (d)(1) for that State as the amount of funds under part A of title I of the Elementary and Secondary Education Act of 1965 ( 20 U.S.C. 6311 et seq.) that the local educational agency received for the most recent fiscal year for which data are available bears to the total amount of funds under that part for all local educational agencies in that State for that year. (B) Direct grants to schools Notwithstanding subparagraph (A), in the case of a local educational agency that continues to employ, or otherwise affiliate with, an individual who is a responsible party who has misused qualifying money, a State educational agency may— (i) directly distribute such funds to schools served by that local educational agency in an amount that bears the same relationship to the total funds that would be directed to that