That's one of the hardest levels; I didn't have time to go back and figure out a sensible way to make it easier. The best way is to remove all the soldiers/workers from the weaker base then suicide your remaining soldiers into the other base before starting to mine.