A has 3 shells⇒ Na ( 1 valence electron) [Ne]3s1
B has 4 shells⇒ Ca (2 valence electrons) [Ne]3s23p64s2
Na in water, sodium hydroxide is formed. Hydrogen gas is formed as a bi- product that gets burnt with a bright flame…. making the reaction highly exothermic.
Ca with water, the calcium metal begins to bubble vigorously as it reacts with water, producing hydrogen gas and a cloudy white precipitate of Ca(OH)2, calcium hydroxide
2Na+2H2O⟶2NaOH+H2
Ca+2H2O⟶Ca(OH)2+H2