If I need an image with a resolution of 10 x 10 m. From an image with a resolution of 20 x 20 m. What do I have to do?

The Sentinel 2 resampling operator does this for you.

A more advanced technique: Sentinel-2 Super-Resolution (all bands at 10m): Snap plugin now available!