Given data:
* The initial velocity of the red box is,

* The initial velocity of the blue box is,

* The final velocity of the red box is,

* The angle of the final velocity of the red box with the original line is,

* The final velocity of the blue box is u.
* The angle of the final velocity of the blue box is denoted as

Solution:
(a). The diagrammatic representation of the given system is,
According to the law of conservation of momentum, the net momentum of the system along the x-axis before and after the collision is,

Substituting the known values,

The net momentum of the system along the y-axis before and after the collision is,

Here, the negative sign is due to the y-component of the velocity of the red box and the blue box being in opposite directions.
Substituting the known values,

Dividing equation (2) by equation (1),

Thus, the angle of the final velocity of the blue box with the original line is 4.446 degrees.
(b). From equation (2), the final velocity of the blue box is,

Thus, the final velocity of the blue box is 3.74 m/s.