James has 5000 - 276 = <<5000-276=4724>>4724 pennies.

They donated a total of 5000 + 4724 = <<5000+4724=9724>>9724 pennies.

# Answer

9724
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Cassandra collected 5000 pennies for the charity drive. James collected 276 fewer pennies. How many pennies did they donate to charity?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
9724
Cassandra collected 5000 pennies for the charity drive. James collected 276 fewer pennies. How many pennies did they donate to charity?
train