CO2(g)+C(s)⇌2CO(g)
Initial pressure 0.5atm 0atm
Equilibrium pressure, (0.5−x)atm 2xatm
At equilibrium, the total pressure is 0.8atm
ptotal=pCO2+pCO
0.8=(0.5−x)+2x=0.5+x
or x=0.3atm
Applying law of mass action,
Kp=(pCO)2pCO2=(2×x)20.5−x=(2×0.3)20.5−0.3=1.8atm