Here's how to understand the formula:
* Ag: The symbol for silver.
* ClO₄: The perchlorate ion, which has a -1 charge.
Since silver has a +1 charge and perchlorate has a -1 charge, they combine in a 1:1 ratio.