Question:  A chef needs to cook 9 potatoes. He has already cooked 7. If each potato takes 3 minutes to cook, how long will it take him to cook the rest? 

Solution program:
answer=(3.0*(9.0-7.0))
print(answer)

Answer: 6