The Raiders stayed on the East Coast following the loss to the Bills to take on the Miami Dolphins on Sunday Night Football. Once again, the Raiders started well, driving 58 yards on 12 plays before stalling and settling for a field goal for an early 3-0 lead. Following punts by both team, the Dolphins pass offense carved up the Raiders dinged-up secondary, going 82 yards on 10 play as Jay Cutler hit Damien Williams for a 10-yard touchdown. The extra point hit the upright and the Dolphins led 6-3. The Dolphins attempted an onside kick on the ensuing kickoff which they recovered. Four plays later, inside the Raider 25 yard line, Kenyan Drake fumbled the ball to end the Dolphins' drive. The Raiders quickly answered as Derek Carr hit speedster Johnny Holton on a 44-yard bomb to the end zone to give the Raiders a 10-6 lead with just over three minutes remaining in the half. The Dolphins moved quickly down the field, but were stopped at the Raider 31 and settled for a field goal to reduce the lead to one point. With just over 30 seconds remaining, The Raider offense moved 42 yards on five plays to set up Giorgio Tavecchio's 53-yard field goal as time expired. At the half, the Raiders led 13-9. In the second half, the Raiders forced the Dolphins to punt on their first possession and the Raider offense took over. Moving 67 yards on six plays, Marshawn Lynch capped the drive with a 22-yard touchdown run to push the Raider lead to 20-9. Miami would not give in, answering on their next drive as Cutler hit Jarvis Landry for a six-yard scored to cut the lead to four again. The teams' defenses took over as they each forced a fumble before Ndamukong Suh forced a Carr fumble to give the Dolphins the ball near midfield. However, the Raider defense forced another punt. Following punts from both teams, Oakland took over at their own 13 with 7:21 left in the game. Six plays later, Lynch bowled his way into the end zone from three yards out to appear to put the game away at 27-16 with four and a half minutes remaining. Miami would turn the ball over on downs at midfield with under three minutes remaining as the game again appeared to be over. However, Carr was intercepted on third down and the Phins moved down the field, moving 83 yards and scoring on a 15-yard pass from Cutler to Julius Thomas with 1:32 remaining. The two-point conversion was good as the lead was narrowed to 27-24. Miami's onside kick was recovered by Amari Cooper and the Raiders were able to kneel out the clock for the 27-24 win. Carr threw for 300 yards with a touchdown and interception. Marshawn Lynch scored twice and Jared Cook had a big day with eight receptions for 126 yards. The Raiders were out-gained 395-379 as both teams had over 100 yards in penalties in the sloppy game. The win moved the Raiders to 4-5 on the season heading into their bye week.
Question: How many points ahead were the Raiders before the end of the second quarter?
Answer: 4