What was a key factor contributing to the Whig victory in the presidential election of 1840?

a.the endorsement of the Whigs by former president Andrew Jackson

b.the economic depression following the Panic of 1837

c.a corruption scandal involving President van Buren

d.the support of northern businessmen I believe the correct answer is
b.? Thanks