It all depends on the valuation of each company, the sales price agreed to, and the stock prices of the 2 companies at the time of the acquistion. You won't get screwed in any case unless the resulting company takes a dive. However the values work out at the time will determine the ratio. You will then be issued new stock certificates in the acquiring company's name according to the ratio.
The ratio isn't important because it depends on the stock price of the acquiring company. Very simple, made-up example:
Company A stock is selling for $15 per share. Company B stock is selling for $30 per share. Sales price is agreed and stock ratio becomes 2 for 1 (each 2 shares of Company A is traded for 1 share of Company B). Say you own 100 shares of Company A worth $1500. You would turn in your 100 share certificate and be issued a 50 share certificate in Company B also worth $1500 (50 X $30).
The real question is whether Company B's stock is likely to make you money in the future. Sometimes companies buy another at a discount, sometimes at a premium. It is usually the case, though, that the company doing the buying will end up in a stronger position than before. No guarantees obviously.