How long can a baby live on ecmo machine?

Depends on diagnosis. Several days to weeks at least, depends on if the problem is with the heart or lungs.