40% means that for every 2 games he wins he lose 3.
80% means that for every 4 games he wins he lose 1.
after 25 games at 40% ---> won 10 and lost 15
after x more games at 80% ---> won (x/5)*4 and lost x/5
so in order to get 60% total winning:
(10+(x/5)*4)/(25+x) = 3/5
(10+4x/5)/(25+x) = 3/5
5*(10+4x/5) = 75+x
50+4x = 75+x
x = 25
x = 50 ---> he has to play 50 games.
first 25 games ---> win 10 lose 15 ---> 10/25 = 40%
then 25 games ---> win 20 lose 5 ---> 20/25 = 80%
total 50 games ---> win 30 lose 20 ---> 30/50 = 60%