Let x be the required amount (volume) of a 40% salt solution. Then the equation for the pure acid volume is 0.4x + 0.1*4 = 0.3*(x + 4). Simplify and solve: 0.4x + 0.4 = 0.3x + 1.2, 0.4x - 0.3x = 1.2 - 0.4, 0.1x = 0.8, x == 8. Answer. 8 liters of 40% salt solution is needed.