If closing and reopening Disk Management doesn't help, you can try the diskpart clean command to merge those two unallocated spaces on Disk 2.
Important: When running the clean command, take extra care when inputting the disk number. It wipes the chosen disk entirely.
https://www.tenforums.com/tutorials/85819-erase...
Standard Disclaimer: There is a link to a non-Microsoft website. The page appears to provide accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as PUPs (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.