Question:  Sam had 10 socks. If he threw away 3 old ones that didn't fit and bought 36 new ones, how many socks would he have? 

Solution program:
answer=((10.0+36.0)-3.0)
print(answer)

Answer: 43