The rule for a side of a triangle is that it has to be less than the sum of the other two sides (so less than 12 + 6) and more than the difference of the two sides (so 12 - 6). This means that the side needs to be less than 18 and more than 6, and the only number that works with that rule is B. 16.
I hope this helps!