James has 5000 - 276 = <<5000-276=4724>>4724 pennies.
They donated a total of 5000 + 4724 = <<5000+4724=9724>>9724 pennies.
#### 9724