Do you even understand what the picture shows you? I'm not sure since you don't try to explain to us what the question is. For example, I can guess that the "m" under each ball is its mass- so that the two balls have the same mass. I can guess that "vi" and "vj" are the initial and final velocities of the cue ball and that "v9" is the velocity of the 9-ball after being hit by the cue ball. It would have been nice if you had said that rather than requiring anyone who wants to help you to guess. And, of course, the only "x" in your picture is the x-axis so "cos(x)" makes no sense at all. I guess you mean [itex]\theta[/itex] but even if you do not know how to make that symbol, it would have been better to type "theta".
You then can use "conservation of momentum". Using vi, vf, v9 now to mean the speed of each ball (magnitude of the velocity vector) the momentum vector of the cue ball before the collision is <mvi,0>, the momentum vector of the cue ball after the collision is <mvfcos([itex]\theta[/itex]>,mvfsin([itex]\theta[/itex]>, and the momentum vector of the 9-ball after the collision is <mv9cos(\theta),-mv9sin(\theta)>. Conservation of momentum gives
<mvi,0>= <mvfcos([itex]\theta[/itex]>,mvfsin([itex]\theta[/itex]>+ <mv9cos(\theta),-mv9sin(\theta)>.
Setting the x-coordinates equal gives mvi= mvfcos([itex]\theta[/itex])+ mv9cos([itex]\theta[/itex]). From that equation you get cos([itex]\theta[/itex])= vi/(vf+ v9). Setting the y-coordinates equal gives 0= mvfsin([itex]\theta[/itex])- mv9sin([itex]\theta[/itex]) or vf= v9.
That gives you 2 equations for the 3 unknown values vf, v9, and [itex]\theta[/itex] (assuming vi is given). You can use conservation of kinetic energy to get the third equation.