So I found a different method of doing this but is not friendly. I was able to split the array with 10 each because I tested them with a toString method to make sure. Well codegym is not accepting that and I been unable to do a b[i] vertically because it does not accept that argument. What to do.....
package com.codegym.task.task07.task0705;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
/*
One large array and two small ones
*/
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int[] nums = new int[20];
int i = 0;
while(i<20){
nums[i] = sc.nextInt();
i++;
}
int n = nums.length;
int[] a = new int[(n+1)/2];
int[] b = new int[n - a.length];
for(i = 0; i < n; i++){
if(i < a.length)
a[i] = nums[i];
else
b[i - a.length] = nums[i];
}
System.out.println(b[i]);
}
}