Write the formula for a complex formed between Ag and NH₃ with a coordination number of 2. Write the formula for a complex formed between Cd²⁺ and CN⁻ with a coordination number of 4.