A gearbox for an engine includes a rotating element and a turbomachine, the turbomachine includes a shaft, and the rotating element is driven by the shaft across the gearbox. The gearbox includes a ring gear, a first sun gear and a second sun gear each configured to be driven by the shaft of the turbomachine, a first planet gear comprising a first gear portion and a second gear portion, and a second planet gear comprising a first gear portion and a second gear portion.