As the element burns with a brick red flame, it is calcium with electronic configuration 2, 8, 8, 2
`underset(("X"))(Ca) + O_(2) rarr underset(("Y"))(CaO)`
`underset(("Y"))(CaO) + H_(2)O rarr underset(("Z"))(Ca(OH)_(2))`
As `Ca(OH)_(2)` is basic in nature it turns phenolphthalein pink and methyl orange yellow.