There are two bags, one of which contains 5 black and 4 white balls while the other contains 3 black and 6 white balls. A die is thrown. If it shows up 1 or 3, a ball is taken from the first bag. But if it shows up any other number, a ball is chosen from the second bag. Find the probability of choosing a white ball.