Let \(A\) liters be the initial amount of acid and \(W\) liters be the initial amount of water.
Step 1: After adding 2 liters of water
The total volume becomes \(A + W + 2\). The acid is \(50\%\) of this volume:
\[\frac{A}{A + W + 2} = 0.50.\]
This simplifies to:
\[A = 0.50(A + W + 2)\]
\[A = 0.50A + 0.50W + 1\]
\[0.50A = 0.50W + 1\]
\[A = W + 2. \quad \text{(Equation 1)}\]
Step 2: After adding 18 liters of acid
The total volume becomes \(A + W + 2 + 18 = A + W + 20\). The acid is now \(80\%\) of this volume:
\[\frac{A + 18}{A + W + 20} = 0.80.\]
This simplifies to:
\[A + 18 = 0.80(A + W + 20)\]
\[A + 18 = 0.80A + 0.80W + 16\]
\[0.20A = 0.80W - 2\]
\[A = 4W - 10. \quad \text{(Equation 2)}\]
Step 3: Solve the system of equations
We have the system:
1) \(A = W + 2\)
2) \(A = 4W - 10\)
Substitute (1) into (2):
\[W + 2 = 4W - 10.\]
Solving for \(W\):
\[12 = 3W\]
\[W = 4.\]
Step 4: Find \(A\)
Substitute \(W = 4\) into Equation (1):
\[A = 4 + 2 = 6.\]
Step 5: Initial Acid to Water Ratio
The initial ratio of acid to water is:
\[\frac{A}{W} = \frac{6}{4} = \frac{3}{2}.\]
Final Answer
The initial acid to water ratio is:
\[\boxed{{3}:{2}}.\]