Coming off their bye week, the Patriots traveled to Candlestick Park to face the 49ers in the first of two straight West Coast games for the Patriots. After a 49ers punt on their first series started the game, Cassel's second pass of the game was intercepted by linebacker Takeo Spikes to give the 49ers the ball at the Patriots' 45-yard line. On the next play, 49ers quarterback J. T. O'Sullivan threw an interception of his own, this one to Meriweather at the Patriots' 4-yard line. A three-and-out for the Patriots on their ensuing drive ended in a 35-yard Chris Hanson punt that gave the 49ers the ball at the Patriots' 30-yard line to begin their next drive. A defensive holding penalty on Patriots cornerback Deltha O'Neal on third down extended the drive, leading to a 16-yard touchdown catch by running back Frank Gore that gave the 49ers a 7-0 lead. On the Patriots' next drive, a fumbled snap by Cassel set up 3rd and 8 from the Patriots' own 34-yard line; Cassel then threw a deep pass to Moss, which was caught at the 49ers' 21-yard line and run in for a 66-yard touchdown that tied the game at 7-7. A 38-yard Isaac Bruce reception from O'Sullivan on the 49ers' ensuing possession backed the Patriots' defense up to their own 22-yard line, and two plays later, O'Sullivan and Bruce again connected on a pass, this one a touchdown from 6 yards out to give the 49ers a 14-7 lead. An exchange of punts brought the teams into the second quarter, where on the third play of a Patriots drive Cassel threw his second interception of the day, this one to Nate Clements on the 49ers' 6-yard line on a deep pass intended to Moss. The 49ers went three-and-out, leading to a 13-play, 40-yard Patriots drive where a third down sack of Cassel in the red zone set up a 35-yard Gostkowski field goal that trimmed the 49ers' lead to 14-10. The 49ers punted again on their next possession, giving the Patriots the ball on their own 20-yard line with just over three minutes remaining in the first half. 11 plays later, the Patriots faced a 2nd and goal from the 49ers' 2-yard line, where a Faulk touchdown run gave the Patriots a 17-14 lead at halftime. On the Patriots' opening possession of the second half, Cassel was sacked to begin the drive, and then again was sacked nine plays later on third down to force the Patriots to punt. Two plays later, O'Sullivan was intercepted by safety Rodney Harrison to give the Patriots the ball at the 49ers' 24-yard line. The Patriots reached the 49ers' 1-yard line, but were denied the end zone twice by the 49ers, setting up fourth down from the 2-yard line. Faulk took the direct snap on the play and ran in for his second touchdown of the game, giving the Patriots a 24-14 lead. Following a 49ers punt, an 8-play Patriots drive resulted in a 40-yard Gostkowski field goal that extended the Patriots lead to 27-14 early in the fourth quarter. Starting from their own 20-yard line, the 49ers began an 11-play drive that ended on a 5-yard touchdown catch by Bruce from O'Sullivan that cut the Patriots' lead to 27-21. The Patriots responded with a 10-play series of their own; six plays into the drive, Faulk caught a second-down pass and was originally deemed to be down short of the first down, but the Patriots challenged the play and Faulk was found to have gained the necessary first down yardage. An offensive pass interference penalty on Moss set up a 3rd and 20 that the Patriots did not convert; Gostkowski then hit a 49-yard line field goal to extend the Patriots' lead to 30-21. A third-down sack of O'Sullivan led to a fourth-down interception by O'Neal that gave the Patriots the ball with 2:45 remaining in the game. The 49ers used all of their timeouts during the Patriots' next possession, and after a Patriots punt, the 49ers failed to convert on fourth down to give the Patriots the ball to end the game.

Based on the above article, answer a question. How many yards was the longest field goal?
49-yard