If you define the second Curve Loop similar to the first one, you will have desired result. Namely, change the Curve Loop(2) = {12, 3, 5, -6, 7, 8}; to the Curve Loop(2) = {-6,5,3,12,8,7};.
Curve Loop(2) = {12, 3, 5, -6, 7, 8};
Curve Loop(2) = {-6,5,3,12,8,7};