The more you eat. The more you live longer because legumes are one of the newly proven wonder foods that keep large populations healthy! You toot occasionally after them too.
In a 2020 lecture, Buettner went so far as to suggest that eating a cup of beans daily could extend your life expectancy by 4-10* years.