Detroit scored two touchdowns in the second quarter, and led Tampa Bay 27-13 late in the game. Josh Freeman suffered through some cramping issues, but rallied the Buccaneers to score a touchdown with under four minutes remaining. The subsequent onside kick failed, but the Buccaneers were able to get the ball back in the final two minutes. Freeman drove Tampa Bay to the Lions 42-yard line in the closings seconds, but they were unable to score.

Based on the above article, answer a question. How many total points were scored?
40