A blue solid ‘X’ was dissolved in water and the solution was divided into two portions. When a few drops of sodium hydroxide were added to the 1st portion, a blue gelatinous precipitate was formed.
When a few drops of dilute nitric acid, followed by a few drops of barium nitrate solution were added to the 2nd portion, a white precipitate was formed. From these observations deduce the identity of substance.