Given elastic collision and A comes to rest:
Use conservation of momentum:
\[
M \cdot 150 + 2M \cdot (-v) = 0 \Rightarrow v = 75\ \text{m/s}
\]
From coefficient of restitution:
\[
e = \frac{v_B - 0}{150 - (-v)} = 1 \Rightarrow v_B + v = 150
\Rightarrow v_B = 75 \Rightarrow v = 37.5\ \text{ms}^{-1}
\]