For balancing the number of carbon atoms in the the below equation, the value of Z should be:
3
There are 3 carbon atoms on reactant side, on product side to match the number of carbon atoms the value of Z should be 3.
From the above table, the value of Z is 3.