State the formula of the compound

A compound XH is formed by the combination of an element X with hydrogen. Find the valency of the element. State the formula of the compound formed by the combination of (a)X with nitrogen (b) X with oxygen.

In the compond XH, the valency of element X is 1.
(i) The valency of nitrogen is 3.
The valency of element X is 1. .
The formula of the compound = $N{{X}{3}}$
(ii) The valency of oxygen is 2.
The valency of element X is 1.
.‘. The formula of the compound = $O{{X}
{2}}$.