How does the EPL relegation and promotion work?

I know bottom 3 get relegated but from what league do the other teams get promoted.

I know there isnt only two leagues

could you name the leagues of promotion and relegation and how many???
7 answers 7