As with most of these questions that require multiple steps, it's best to write out what you know and what you want to find. For this gravimetric question, you know the mass of AgCl precipitate, and you want to find the amount of Cl- ions in the brick cleaner.
So, you would proceed like this:
m(AgCl) = 2.945g
Find the amount of AgCl in moles using n(AgCl) = m/M
The number of moles of Cl- ions in the 20mL sample would equal the number of moles of AgCl just found, that is, n(Cl- in 20mL diluted sample) = n(AgCl)
You didn't actually state the volume that you diluted the 5mL sample of brick cleaner to. Let's say it was x mL. You would then do n(Cl- in 5mL undiluted sample) = x/20 * n(Cl- in 20mL sample).
For mass of HCl in sample, you know that n(HCl) = n(Cl-). So, m(HCl) = n(HCl) * M(HCl).
You will then be asked to use this mass to determine the actual %HCl in the brick cleaner and compare the value you obtained with the 32% HCl that is on the label.
Hope this clears things up!