killing two birds with one stone; serving two ends
A yojijukugo meaning to gain two benefits from a single action. Often used in formal or written contexts.
With this method, you can kill two birds with one stone.
Let's think of a plan that serves two ends.