Let the original solution have $x$ liters of water and $y$ liters of acid.
After adding 2 liters of water, the solution has $(x+2)$ liters of water and $y$ liters of acid.
Given, 50 percent of the new solution is acid. So, $\frac{y}{(x+2)} = 0.5$.
After adding 15 liters of acid, the solution has $(x+2)$ liters of water and $(y+15)$ liters of acid. Given, 80 percent of the final solution is acid. So, $\frac{(y+15)}{(x+2+15)} = 0.8$.
Solving these two equations, we get $x = 2$ and $y = 7$.
Therefore, the ratio of water and acid in the original solution is 2:7 or 1:3.5.