Which of the following reacts with metal by displacing H atom ?
Be2C + H2O → BeO + x
CaC2 + H2O → Ca(OH)2 + y
Mg2C3 + H2O → Mg(OH)2 + z.
x,y & z are respectively