There are two situations :
- You guess the color really randomly, i.e. you guess it is green for $50$% of times and you guess it is red for the other $50$% of times.
- You guess efficiently to reduce the number of wrong guesses. In this situation, you must check to is if you guess green for $70$% of times and guess red for $30$% of times it is better or if you guess the color that we have more.
For both situations we have :
P(Wrong guess) = P(Guess is Green & You pick Red) + P(Guess is Red & You pick Green)
As your guess and the pick are independent, the probability of each part is multiply of its parameters, i.e. :
$P(Wrong_{Guess}) = P(Guess_{Green})* P(Pick_{Red})+P(Guess_{Red})*P(Pick_{Green})$
So for 1st situation :
$P(Wrong_{Guess})= 1/2 * 0.3 + 1/2* 0.7 = 0.5$
And for 2nd situation :
$P(Wrong_{Guess})= 0.7 * 0.3+ 0.3*0.7= 0.42 $
Look, $42$ % is greater than $30$%. So the best way to minimum the wrong guesses is to say Green for all the times, And in this situation, $P(Wrong_{Guess}) = 0.30$