Compounds that are made up of two types of atom only have a name that ends in -ide.
For example a compound made up of sodium and sulfur would be sodium sulfide.
The metal normally makes up the first part of the name and the non metal makes up the last part of the name.
For example a compound of iron and sulfur (FeS) would be iron sulfide.
If the non - metal is oxygen the compound is an oxide (CaO - calcium oxide)
If the non-metal is chlorine the compound is a sulfide. (FeS - iron sulfide)
If the non-metal is chlorine the compound would be a chloride (HCl - hydrogen chloride)
(Later on we would call this iron (II) sulfide but that is not important here).