What event led to the U.S. purchase of the Louisiana Territory?

a
The burning of a U.S. Navy ship in the First Barbary War

b
The U.S. Supreme Court's decision in Marbury vs. Madison

c
The successful Haitian slave revolt

d
Napoleon losing money in his European wars

help pleaseeeee