Powerful magnets take away anything made of metal leftover leaving plastic and other materials.That is that part of that machine.
Then a team sorts it all into bins. once that is done it's put in another machine called a baler which turn them into huge cubes of trash then it's loaded to trucks.
Once they are made into cubes and in trucks they are sold to somewhere to be renewed.