The box method is a good way to solve this, but for a quick explanation, start by finding a single value that when added gets -10 and when multiplied gets +25. We can find that this term is -5. We the can situate -5 into (e-5)^2 equation, where if you FOIL, you will be back at the unfactored equation. Hope this helps