It should be noted that for X to liberate CO2, X must be a carbonate or an oxalate. Since X decolorizes KMnO4, X must be an oxalate.
Therefore, X is H2C2O4.