With the assumption that both masses are equal and momentum is conserved the momentum equations can be written as:
Horizontal: 17 = v1*cos(45) + v2*cos(30)
Vertical: 0 = -v1*sin(45) + v2*sin(30)
These can be solved easily enough to find v1 ≈ 8.8 and v2 ≈ 12.4
However, this must be an inelastic collision, because kinetic energy is not conserved. That is 1/2*172 ≠ 1/2*v12 + 1/2*v22.