The expression for the initial velocity of the cannon ball is:

The expression for the initial velocity of the piece-1 after the collision is:
The expression for the angle is:
Then the expression for the initial velocity of the piece-1 after the collision is:

The expression for the initial velocity of the piece-2 after the collision is:

The expression for the law of conservation of momentum for the cannon ball and the two pieces is

Compare the x and y-components of the above equation as follows:

Square and add equations (1) and (2) as follows:
![(m_2v_2cos\theta_2)^2=(m_1v_1sin(\theta_1-90^o)+m_cv_1cos\theta_1)^2+(m_2v_2sin\theta_2)^2=(m_1v_1cos(\theta_1-90^o)+m_cv_1sin\theta_1)^2\\\\=(m_2v_2)^2=(m_1v_1sin(\theta_1-90^o)+m_cv_1cos\theta_1)^2+(m_1v_1cos(\theta_1 —90^o))-(m_cv_1sin\theta_1)^2\\\\v_2=(1)/(m_2)[tex]√((m_1v_1sin(\theta_1-90^o)+m_cv_1cos\theta_1)^2+(m_1v_1cos(\theta_1 —90^o))-(m_cv_1sin\theta_1)^2)](https://img.qammunity.org/2020/formulas/physics/college/p267e5v8j4gimkv160z9enahp239hs1lx1.png)
Calculate the magnitude of the velocity of the piece-2 as follows
![v_2=(1)/(m_2)√((m_1v_1sin(\theta_1-90^o)+m_cv_1cos\theta_1)^2+(m_1v_1cos(\theta_1 —90^o))-(m_cv_1sin\theta_1)^2)\\\\=(1)/(0.1)√(((0.2kg)(5m/s)sin(150-90)^o+(0.30kg)(20m/s)cos39.7))^2+((0.2kg)(5m/s)cos(150 —90)^o-(0.30kg)(20m/s)sin39.7)^2)]()