Question:  Josh had 142 pencils. He gave 31 pencils to Dorothy. How many pencils does Josh have left?

Solution program:
answer=(142.0-31.0)
print(answer)

Answer: 111