We know that C has a formal charge of +4 while each O element has a formal charge of -2, therefore the formal charge of X is:
X + 2 – 2 * 3 = 0
X + 2 – 6 = 0
X = 4
So X has a group number of 4.