With replacement:
a) 2/3 x 2/3 = 4/9
b) 2/3 x 1/3 + 1/3 x 2/3 = 4/9
The tree diagram will just have B and W in the first branch, then B and W coming off the first branches. Then if you want you put in the fractions on the branches. So 'B' on the first branch will be 1/3 then the B coming off that will also be 1/3 if the ball is replaced. So to work out 2 black balls for example, you would times these two fractions. As you always times along the branch, but add separate branches if need be. Like I did in b).
However, if it is without replacement:
a) 2/3 x 1/2 = 1/3
b) 1/3 x 2/2 + 2/3 x 1/2 = 2/3
If you need any more help let me know. And if I've done it wrong let me know also lol.