Butter one’s bread on both sides.

Meaning: To make profit from two things at the same moment.