Question:  For the school bake sale Amy made pastries. She baked 15 cupcakes and 48 cookies. After the sale she had 12 to take back home. How many pastries did she sell? 

Solution program:
answer=((15.0+48.0)-12.0)
print(answer)

Answer: 51