The sum appropriated pursuant to section
620 of this title for each fiscal year shall be allotted by the Secretary for use by cooperating State public welfare agencies which have plans developed jointly by the State agency and the Secretary as follows: He shall first allot $70,000 to each State, and shall then allot to each State an amount which bears the same ratio to the remainder of such sum as the product of