Calculate cost basis after stock conversion

I purchased 200 shares of Company A stock at $10 per share. Company B purchased Company A and the 200 shares converted to 150 shares then worth $25 per share. I am now selling 15o shares of B. How do I calculate cost basis for 150 shares?