What is the correct formula for an ionic compound that contains aluminum ions and sulfide ions?

The answer is Al2S3. How did they get this answer?