The rate of pipe A is \( \frac{1}{12} \) of the tank per minute, and the rate of pipe B is \( \frac{1}{18} \) of the tank per minute. When both are opened together, the combined rate is:
\[
\text{Combined rate} = \frac{1}{12} + \frac{1}{18} = \frac{3 + 2}{36} = \frac{5}{36}.
\]
Thus, the time taken to fill the tank is the reciprocal of the combined rate:
\[
\text{Time} = \frac{36}{5} = 7 \frac{1}{5} \text{ minutes}.
\]