To find the molarity of the HCl solution, we use the formula for neutralisation reactions:
\[
M_1 V_1 = M_2 V_2
\]
where \( M_1 \) and \( V_1 \) are the molarity and volume of NaOH, and \( M_2 \) and \( V_2 \) are the molarity and volume of HCl. After substituting the known values, the molarity of HCl is calculated.