First of all, make sure you are running GParted from a live session. You cannot move partitions used by a system that is currently using them.
To add the unallocated space to a partition, you will need to make sure that the unallocated space is adjacent to the partition. You will therefore need to move the partitions after the unallocated space right after sda9 first. Then, the unallocated space will move after your current sda12, which is currently your /home partition. You will then be able to expand sda12 to also use the unallocated space.
Moving partitions using gparted may take a long time. It would be faster to delete these partitions and then recreate partitions the way you want, and reinstall.
First of all, make sure you are running GParted from a live session. You cannot move partitions used by a system that is currently using them.
To add the unallocated space to a partition, you will need to make sure that the unallocated space is adjacent to the partition. You will therefore need to move the partitions after the unallocated space right after sda9 first. Then, the unallocated space will move after your current sda12, which is currently your /home partition. You will then be able to expand sda12 to also use the unallocated space.
Moving partitions using gparted may take a long time. It would be faster to delete these partitions and then recreate partitions the way you want, and reinstall.