Help Optimus!

Limits: 1s, 256 MB

In an alternate reality, due to a prolonged battle between Autobots and Decepticons, planet Cybertron is about to fall. Thanks to the great Bumblebee, a portal has been created between Earth and Cybertron through which Optimus Prime (the leader of the autobots) intends to transfer all surviving autobots to Earth. But there seems to be a problem. Inter-Galactic travel between planets is not cheap. For each group to pass through the portal, a certain amount of energon units are required as fuel which can be purchased from the Galactic Market using Cybertronian currency. Unfortunately, Optimus Prime is running short on Cybertronian money at the moment and so wants to minimize the total cost of travel. He wants to divide the autobots in groups.

This is a companion discussion topic for the original entry at