Correct answer: 256 617 persons. In 2020, around 2,25 million residence permits were granted in the EU. In 2019, the figure was around 3 million and the decrease was a result of Covid-19 travel restrictions. The majority, 40 percent (903,398 persons), were granted a residence permit for work, compared to 11 percent (256,617 persons) who were asylum seekers. The most common nationality that was granted a residence permit in the EU 2020 was Ukrainian. Read more about the migration tendency among Ukrainians before the war in Delmi's Policy Brief How large will the Ukrainian refugee flow be, and which EU countries will they seek refuge in? (2022:3).
In Migration in numbers (only available in Swedish) you can also see the number of asylum applications in the EU/EEA countries between 2008–2020, the number who have either been granted a residence permit for security reasons or who have had their application rejected.
Source: Overall figures of immigrants in European society (European Commission).