It is given that the charge on potassium is +1 i.e. Potassium is a cation, K⁺ and the charge on selenium is given as -2, i.e. selenium is an anion, Se²⁻
The two ions are shown to combine to form a molecule: KXSeY where X and Y correspond to the proportions in which the two atoms combine.
Since the molecule is neutral, the positive and negative charges need to be balanced. This is possible only if 2 units of K⁺ combines with 1 unit of Se²⁻.
Therefore, the formula would be K₂Se
X = 2 and Y = 1