Friendship suggestions on Facebook and Instagram – what is behind them?

Work colleagues appear in the list next to party acquaintances or old school friends. In between, however, there are always completely unknown people – the selection of people is surprising at first glance. And we don’t even want to be friends with many of the people who are suggested to us. But how does Facebook know that we know these people? And according to what pattern are they selected?