such grants were made. The amount of the funds allocated pursuant to this subsection for each such metropolitan city or urban county in the State shall bear the same ratio to the total amount of funds for the State allocated under this subsection as the amount of funds awarded to such city or county under section 106 of such Act for such most recent fiscal year bears to the total amount of funds awarded to all metropolitan cities and urban counties in such State under such section 106 for such most recent fiscal year.