; and (B) for which obligation authority was provided in a previous fiscal year; (3) shall determine the proportion that— (A) the obligation authority provided by subsection (a) for the fiscal year, less the aggregate of amounts not distributed under paragraphs (1) and (2) of this subsection; bears to (B) the total of— (i) the sums authorized to be appropriated for the Federal-aid highway and highway safety construction programs, other than sums authorized to be appropriated for— (I) provisions of law described in paragraphs (1) through (13) of subsection (b); (II) section 203 of title 23, United States Code, equal to the amount referred to in subsection (b)(14) for the fiscal year; and (III) section 133(d)(1)(B) of title 23, United States Code, equal to the amount referred to in subsection (b)(15) for the fiscal year; less (ii) the aggregate of the amounts not distributed under paragraphs (1) and (2) of this subsection; (4) shall distribute the obligation authority provided by subsection (a), less the aggregate amounts not distributed under paragraphs (1) and (2), for each of the programs (other than programs to which paragraph (1) applies) that are allocated by the Secretary under this Act and title 23, United States Code, or apportioned by the Secretary under sections 202 or 204 of such title, by multiplying— (A) the proportion determined under paragraph (3); by (B) the amounts authorized to be appropriated for each such program for the fiscal year