The total energy before the interaction is equal to the total energy after the interaction, as per the law of conservation of energy.
So the energy before impact is given by the mass of the electron at rest (multiplied by c2 ), the mass of the positron (again multiplied by c2) plus the kinetic energy of the positron.