The equivalent weight \( E \) of an acid is related to its molecular weight \( M \) by the formula:
\[
E = \frac{M}{n}
\]
Where:
- \( n = 2 \) for a dibasic acid (since it can donate two protons per molecule)
- \( E = 12 \) (given)
Substitute the values into the equation:
\[
12 = \frac{M}{2}
\]
Solving for \( M \):
\[
M = 12 \times 2 = 24
\]
Thus, the molecular weight is 24.