How does the sentence end?

Sam had to control his diet by eating only mushroom and broccoli, but he only ate the
broccoli to increase his greens.