from the question,
P(that the balloon animal is yellow) = 0.7
P(the balloon animal has a dog shape) = 0.6
P(that it is yellow and is shaped like a dog) = 0.5
We are to find the probability that a randomly selected balloon is yellow or is shaped like a dog is

Therefore, the probability that a randomly selected balloon is yellow or is shaped like a dog is 0.8