Bag A contains 9 white and 8 black balls, while bag B contains 6 white and 4 black balls. One ball is randomly picked up from the bag B and mixed up with the balls in the bag A . Then a ball is randomly drawn from the bag $A$. If the probability, that the ball drawn is white, is $\frac{p}{q}, \operatorname{gcd}(p, q)=1$, then $p+q$ is equal to