Imagine finding out that something as simple as eating more beans — or broccoli — could protect your heart, depending on whether you're a man or a woman. That's exactly what researchers from Edith Cowan University in Western Australia discovered in a major new study.

The study used data from the Raine Study, an incredible research project that has followed people in Western Australia since before they were born — for 37 years now. Looking at young adults, researchers found that men and women seem to benefit from different vegetables when it comes to keeping their hearts healthy.

For young men, the standout foods were legumes — that's beans, lentils, and peas. Men who ate more of these were significantly less likely to show early warning signs of heart disease, like high cholesterol or rising blood pressure. For young women, cruciferous vegetables did the trick: broccoli, cauliflower, and cabbage appeared to offer special protection against both heart disease and type 2 diabetes.

"We saw very clear sex-based differences," said lead researcher Neal McNamara. "Beans for blokes and broccoli for women stood out as the real winners."

Why might the same vegetables work differently for men and women? Associate Professor Therese O'Sullivan from ECU's Nutrition and Health Innovation Research Institute says it comes down to how our bodies process plant compounds. Natural compounds in legumes may affect testosterone levels more strongly, she explained, while compounds in cruciferous vegetables might interact differently with female hormones like estrogen and progesterone.

The findings are especially striking because the health risks researchers were tracking — like expanding waistlines, high blood pressure, and unhealthy cholesterol — are usually things doctors worry about in older adults. But the data showed that nearly 1 in 5 young participants already had multiple warning signs, even in their early 20s.

"These risk factors are appearing earlier than most people would expect," O'Sullivan said.

The good news? You don't need to overhaul your diet entirely. Adding just one extra serving per day of the right vegetables was linked to a much lower health risk. And unlike exotic superfoods that can cost a fortune, beans and broccoli are already part of most Australian kitchens — which matters when many families are feeling the squeeze from rising grocery prices.

"What you eat now matters," said Dr. Blekkenhorst, one of the researchers. "Choosing to eat these vegetables every day could make a real difference in how long — and how well — you live your life."

Researchers say this study is a starting point, and they're calling for longer studies to confirm the link. But for now, the message is simple: when it comes to protecting your heart, one size doesn't fit all.