They react to form salt ZnCl + hydrogen gas

As long as the equation in question can be expressed as the sum of the three equations with known enthalpy change, its
can be determined with the Hess's Law. The key is to find the appropriate coefficient for each of the given equations.
Let the three equations with
given be denoted as (1), (2), (3), and the last equation (4). Let
,
, and
be letters such that
. This relationship shall hold for all chemicals involved.
There are three unknowns; it would thus take at least three equations to find their values. Species present on both sides of the equation would cancel out. Thus, let coefficients on the reactant side be positive and those on the product side be negative, such that duplicates would cancel out arithmetically. For instance,
shall resemble the number of
left on the product side when the second equation is directly added to the third. Similarly
Thus
and

Verify this conclusion against a fourth species involved-
for instance. Nitrogen isn't present in the net equation. The sum of its coefficient shall, therefore, be zero.

Apply the Hess's Law based on the coefficients to find the enthalpy change of the last equation.

Mg + 2HCl = H₂ + MgCl₂
n(HCl)=c(HCl)v(HCl)
n(H₂)=n(HCl)/2=c(HCl)v(HCl)/2
n(H₂)=3.0mol/L*0.2500L/2=0.375 mol≈0.38 mol
The elements in each group have the same number of electrons in the outer orbital. Or also called valence electrons. Khan academy has a great video online explaining why this happens. (It only happens for main group elements). Here is a link (sorry you can’t click it in Brainly) https://www.khanacademy.org/science/chemistry/periodic-table/copy-of-periodic-table-of-elements/v/periodic-table-valence-electrons. Feel free to message me for a better explanation, I would explain now but I’m not sure how much you know about this. If you know how to write an electron configuration you can see how all the electron configurations for the same group (not the transitional metals only the main groups) have the same number of valence electrons. I hope that helped, sorry I was vague about the explanation :)