Hey there! Chlorine is not that selective so it can react with the primary and the secondary. In the first molecule, you can observe that it is very symmetrical and since we don't need to count stereoisomers each type of carbon (primary or secondary) should only give you one product each. So the answer is 2 for A.
The second one is a bit tricky but if you look closely, attaching to any of the methyl groups on the left would yield only one product. Then you can get one product for the secondary, and another for the primary on the right. So overall you have 3.
I hope this helps!