32-P cant be copper as it doesnt react with HCl
Q is CuO as only it can be reduced with hydrogen as it is lower in the reactivity series
34-Carbon and Mg are the only solids
Carbon and CO burn to produce CO2 which is gaseous at r.t.p.
Thus only carbon satisfies both the requirements