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

Solution program:
answer=(3.0*(12.0-4.0))
print(answer)

Answer: 24