; or (2) if the local educational agency or an eligible school served by such agency meets the conditions described under subsection (c)(2), to purchase AED devices for eligible schools and pay the costs associated with obtaining the certifications necessary to meet the guidelines established in section 399V–7(a)(4). (c) Grant eligibility (1) Application To be eligible to receive a grant under this section, a local educational agency shall submit an application to the Secretary at such time, in such manner, and containing such information and certifications as such Secretary may reasonably require. (2) AED allocation and training To be eligible for grant funding to purchase AED devices as described in subsection (b)(2), an eligible local educational agency shall demonstrate to the Secretary that such local educational agency or an eligible school served by such agency has or intends to implement a CPR and AED training program and has or intends to implement an emergency cardiac response plan as of the date of the submission of the grant application. (d) Priority of award The Secretary shall award grants under this section to eligible local educational agencies based on 1 or more of the following priorities: (1) A demonstrated need for a CPR or AED training program in an eligible school or a community served by an eligible school, which may include— (A) schools that do not already have an automated AED on school grounds; (B) schools in which there are a significant number of students on school grounds during a typical day, as determined by the Secretary; (C) schools for which the average time required for emergency medical services (as defined in section 330J(e)) to reach the school is greater than the average time required for emergency medical services to reach other public facilities in the community