Dear student,
In hydrogen sulphide the valency of hydrogen is +1 and the valency of sulphide is -2.
When it forms the chemical formula then to balance the -2 charge on sulphur is stabilise by +2 charge of two hydrogens.
The chemical formula becomes
Regards