A bag contains (n+7) tennis balls.

n of the balls are yellow

The other 7 balls are white

John will take at random a ball from the bag.

He will look at its colour and then put it back in the bag.

After john has put the ball back into the bag, Mary will then take at random a ball from the bag.

She will note its colour.

Given that the probability than John and Mary will take balls with different colours is 4/9,

Prove that 2n2 – 35n + 98 = 0