Taking them in the best order will be hard since the blue pill or its 10M would be left in the old timeline - or if there's only one timeline, left in the lost future
You could take the blue pill and live it up for however long, try not to die suddenly, then take the red pill. That sounds risky to me