Tim gave 40 / 2 = <<40/2=20>>20 balls to Robert.
Robert now has 25 + 20 = <<25+20=45>>45 balls.
#### 45