Double Trouble puzzle


Two mazes, two balls, everything connected by giant gears. On their own, each maze is manageable. Can you find the way to remove both balls from the mazes simultaneously, though? 

Careful! The gears move at the same time, so a step towards the exit on one side may be a step backwards on the other...