If you add <em>x</em> gal of the 18% mixture, each gallon adds 0.18 gal of salt, so <em>x</em> gal would add 0.18<em>x</em> gal of salt.
The 15 gal of 2% salt mixture already contains 0.02 (15 gal) = 0.3 gal of salt.
The total volume of the new mixture would be (15 + <em>x</em>) gal. To achieve a 7% concentration of salt, you would need to add <em>x</em> gal of the 18% mixture such that
(amount of salt) / (total volume) = (0.3 + 0.18<em>x</em>) / (15 + <em>x</em>) = 0.07
Solve for <em>x</em> :
0.3 + 0.18<em>x</em> = 0.07 (15 + <em>x</em>)
0.3 + 0.18<em>x</em> = 1.05 + 0.07<em>x</em>
0.11<em>x</em> = 0.75
<em>x</em> = 0.75 / 0.11 ≈ 6.82 gal