Coming off their win over the Browns the Bengals played on home ground for an AFC duel with the Chargers.  In the first quarter the Bengals took the lead with QB Carson Palmer throwing a 3-yard TD pass to TE Jermaine Gresham. Then Palmer found WR Jerome Simpson on a 10-yard TD pass (PAT failed, wide left). The Chargers got on the board with kicker Nate Kaeding hitting a 20-yard field goal, followed by RB Ryan Mathews getting a 23-yard TD run, but the Bengals put more points up with Palmer getting a 3-yard TD pass to WR Jordan Shipley. The lead was narrowed with Kaeding making a 28-yard field goal, but the Bengals increased their lead after Palmer connected to Simpson on a 59-yard TD pass, followed by RB Bernard Scott getting a 10-yard TD run. The Chargers tried to come back after QB Philip Rivers made a 5-yard TD pass to WR Kelley Washington, but the Bengals defense prevented any more scoring chances, giving themselves the win.
Question: How many yards total were the first and last touchdowns of the game?
Answer: 8