The Two Sources of Solar Energetic Particles