If you imagine the ball's path as being a line, you need to find the angle it intersects the wall at.
If it intersects the wall at a 45 degree angle, it will leave at a 45 degree angle, if it hits at a 10 degree angle it will leave at a 10 degree angle. You will also have to take into account that the ball (in snooker, or pool as we call it on this side of the pond,) has velocity, and a great deal of that can be absorbed by the wall it hits, depending on the angle.
Also if you want to get truly complex, the ball can have different spins that can make the equation more of a parabola than a straight angle. your best bet is probably to get a marble and a shoe box lid or something, make some measurements, try a few things out, then think about it a whole lot.
Maybe this isn't very helpful, but I'm not a math whiz or a physics whiz, so if anybody is, feel free to correct me.
Think Gad fro Spill Chock!