Eating legumes -- such as beans and peas, helps lower "bad" cholesterol, a new study finds.