to make a living
Want to practice? Try a conjugation exercise.
"ganarse las habichuelas" means "to make a living".