E = m c2 where E is the energy , m is the mass , and c the speed of light .