The correct option is B NaAlO2
The lithium flame is bright red, sodium shows yellow flame where as, potassium shows violet flame. According to passage a soft silver white metal (A) burns with golden yellow flame to give a yellow power B which on treatment with water liberates oxygen giving a clear solution.
2Na2+O2→2Na2O
Na2O on treatment with water liberates oxygen giving a clear solution.
2Na2O2+2H2O→4NaOH+O2
The solution placed on AI attacks this metal, liberating a gas and forming a water soluble compound .
2Al+2NaOH+2H2O→2NaAlO2+3H2
Hence, the final option is NaAlO2.