Hydrochloric acid was added into the solution under investigation. The resulting precipitate was filtered, then this filter cake was processed with hot water; after the filtrate cooled, KI solution was added into it. What cation was present in the solution if the precipitate was colored yellow?

Hg²⁺
Ba²⁺
Ca²⁺
Pb²⁺
Ag⁺