Question:  A painter needed to paint 10 rooms in a building. Each room takes 8 hours to paint. If he already painted 8 rooms, how much longer will he take to paint the rest? 

Solution program:
answer=(8.0*(10.0-8.0))
print(answer)

Answer: 16