Classical and Conditional Probability
Probability problem with bags and balls
Given three indentical bags each containing 10 balls, whose colours are as follows :

A person chooses a bag at random and takes out a ball. If the ball is Red, the probability that it is from bag I is p and if the balls is Green, the probability that it is from bag III is q, then the value of

is :