6. (5 points)
There are two types of Minions, one-eyed and two-eyed. Today, 12 one-eyed Minions and 14 two-eyed Minions came to work at the factory, and 18 of the Minions wore hats. Therefore, the minimum number of two-eyed Minions wearing hats is $\qquad$.
$6$