In your examples, the probability of a random green ball having property X is always higher than that of a random ball. If the incidence of X in the green population is higher than the base rate, then if a random ball is green, it means it is more likely to be X.