Do you have more data, like for instance the photon's energy?
Because if the photons are gammas, you can get electrons with MeV energy, be they from CO2 or anything else.
If the question is like I suppose, it must be some energy conservation rule, but to be accurate, remember that the ion also has some impulse hence kinetic energy as well. With gammas, you'd need the photon's impulse as well, since the impulse-to-energy relationship resembles for any relativistic particle.