; (C) the extent of housing that was constructed before 1950 and is occupied by a household in poverty in that urban county and the extent of such housing in all metropolitan areas; and (D) the extent of housing overcrowding in that urban county and the extent of housing overcrowding in all metropolitan areas. (3) In determining the average of ratios under paragraphs (1) and (2)— (A) the ratio under subparagraph (A) of such paragraphs shall be counted five times; (B) the ratio under subparagraph (C) of such paragraphs shall be counted three times; and (C) each of the other ratios shall be counted once. ; and (B) in paragraph (6)— (i) by striking subparagraph (B); (ii) by striking (A) ; and (iii) by redesignating clauses (i) through (iii) as subparagraphs (A) through (C), respectively; and (2) in subsection (d)(1), by striking the second and third sentences and inserting the following: The allocation for each State shall be the amount that bears the same ratio to the allocation for such areas of all States available under this paragraph as the average of the ratios between— (A) the poverty rate per person in families and elderly households in the nonentitlement areas in that State and such poverty rate in the nonentitlement areas of all States; (B) the extent of female-headed households with children under age 18 in the nonentitlement areas in that State and the extent of such households in the nonentitlement areas of all States; (C) the extent of housing that was constructed before 1950 and is occupied by a household in poverty in the nonentitlement areas in that State and the extent of such housing in the nonentitlement areas of all States