Hello, this is Emily.
Unfortunately you won't be able to use any Microsoft native tool to extend to partition that's not adjacent
This will need to be done via third party tool. A common free one out there is aomei partition assistant. If you do end up using their tool, they do have a tutorial for this particular scenario: https://www.diskpart.com/articles/merge-non-adj...
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.