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

Solution program:
answer=(5.0*(6.0-2.0))
print(answer)

Answer: 20