The most likely explanation for what happened to the energy is:
The primary consumer took in 5,000 units of energy and released 4,950 units, leaving 50 units for the secondary consumer to take in.
This choice explains that the primary consumer retains 50 units of energy after consuming the producer, and the rest is released, which aligns with the flow of energy through the trophic levels in an ecosystem.