Answer
The formula of the compound formed is $K_2S$.
Work Step by Step
Potassium forms the cation $K^+$. Sulphur forms the anion $S^{2-}$. To balance the charges, two ions of potassium react with one ion of sulphur. So, the formula of the compound formed is $K_2S$.