Nitride of a metal X is XN.
Since valency of nitrogen is 3-
so valency of X is 3+
Formula of the sulphate:
X3+↗SO42−X33 ↘↙ S2O4⇒22X ↘↙ 3SO4
So, we get the formula as X2(SO4)3
Formula of the hydroxide:
X3+↗OH1−X33 ↘↙ O1H⇒11X ↘↙ 3OH
Dropping 1, we get the formula as X(OH)3
Therefore, we get
Formula of Sulphate : X2(SO4)3
Formula of Hydroxide : X(OH)3