Question:  The school cafeteria ordered 42 red apples and 7 green apples for students lunches. But, if only 9 students wanted fruit, how many extra did the cafeteria end up with? 

Solution program:
answer=((42.0+7.0)-9.0)
print(answer)

Answer: 40