Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given the array nums consisting of 2n elements in the form [x1,x2,...,xn,y1,y2,...,yn].
Return the array in the form [x1,y1,x2,y2,...,xn,yn].
 
Please complete the following python code precisely:
```python
class Solution:
    def shuffle(self, nums: List[int], n: int) -> List[int]:
```