What is the primary function of papillary muscles in the heart?
a) To regulate blood flow into the coronary arteries
b) To prevent leaflets from prolapsing into the atria during ventricular contraction
c) To modulate the electrical activity of the heart
d) To control the opening and closing of the aortic valve