Let x mol of HCOOH and y mol of (COOH)2 be present.
HCOOHxH2SO4−−−−→H2O+COx
(COOH2)xH2SO4−−−−→H2O+COx+CO2y
Total moles of (CO+CO2)=x+2y
Total moles of CO2=y
According to the question,
(x+2y)×16=y
∴xy=4:1
Alternatively, mole fraction of CO2=yx+2y=16
∴xy=4:1
So, x+y=4+1=5