Question:  While playing a trivia game, Mike answered 3 questions correct in the first half and 5 questions correct in the second half. If each question was worth 3 points, what was his final score? 

Solution program:
answer=(3.0*(3.0+5.0))
print(answer)

Answer: 24