; (II) have attained an age such that the provision of foster care for such child will end by reason of the age of the child within 6 months; (III) meet the requirements under clauses (i) and (ii) of paragraph (1) of the definition of at risk of homelessness in section 91.5 of the Secretary of Housing and Urban Development’s regulations (24 C.F.R. 91.5), as in effect on September 1, 2016; and (IV) have agreed to comply with the requirements under clause (iii). (ii) Notwithstanding the period during which a preference pursuant to clause (i) for occupancy in a project assisted under this paragraph or for rental assistance under this paragraph is provided for a person, an otherwise eligible person may apply for such occupancy or assistance at any time after the person attains 16 years of age. (iii) (I) Except as provided in subclause (II), each person occupying a dwelling unit pursuant to a preference under this subparagraph shall be, not later than 12 months after such initial occupancy and for at least 9 months of each successive 12-month period thereafter— (aa) employed on average at least 35 hours of service per week; (bb) engaged in vocational, technical, or workforce development training or in an apprenticeship, on a full-time basis, as classified by a vocational, technical, or workforce development training institution or entity; (cc) enrolled in a secondary school, an institution of higher education, or other institution providing post-secondary education, on a full-time basis, as classified by an educational institution