Reaction -after collision- ball path predicte

hello, I am making a billard game, I already have almost everything, I would like to know how to calculate these two line (A and B), please look at the picture:

http://img228.imageshack.us/img228/8207/balyk3.jpg

thanx