It is really on a case by case situation. Company B might agree to pay $6 per share of company A in which case you would get $6 for every share that you own and the stock would disappear. Or the stock might be fused with the new company. It depends on the deal that they made.
But no matter what happens you should wind up with roughly what your shares were already worth.