Two metals X and Y have 3 and 2 electrons in their valence shells ′M′ and ′N′ respectively. These metals can form binary compounds A and B with the same non-metal carbon. Both A and B can undergo hydrolysis forming hydrocarbons C and D. Identify C and D.