Profit will be achieved when the money earned is greater than the money spent so,
336 + (n*12) = n*28 any subsequent units sold would result in profit
336 = 28n - 12n
336 = 16n
=> n = 336/16 = 21
21 units must be sold to draw even any more would result in profit