The 0-2 Bills, who had not beaten the Patriots since Week 1 of the 2003 season, faced off against the Patriots in Foxboro. On the opening drive of the game, Wilfork was penalized for roughing the passer for a late hit on Bills quarterback J. P. Losman. Two plays later, Hobbs sacked Losman, causing a fumble at the Bills' 35-yard line that set up a 24-yard Gostkowski field goal. Trent Edwards replaced Losman at quarterback for the Bills on their next possession. Losman was later diagnosed with a sprained MCL. The Bills took the lead on a 12-play drive finished off with an 8-yard Marshawn Lynch touchdown run, but these points proved to be the only of the game for the Bills. Early in the second quarter, the Patriots drove to the Bills' 29-yard line, but on fourth down, opted not to punt; the gamble did not pay off and the Patriots turned the ball over on downs. After a Bills three-and-out, the Patriots again drove deep into Bills' territory, this time to the Bills' 3-yard line, but a Brady fumble on a rushing attempt kept the Patriots from scoring. The Patriots challenged the ruling but it was upheld. The Bills could not advance past their own 1-yard line on their next possession, with punter Brian Moorman booming a 75-yard kick that was returned 29&#160;yards by Welker. Starting in Bills' territory, Brady culminated a six-play drive with an 8-yard touchdown pass to Watson. Another Bills punt gave the Patriots the ball in Bills territory again, setting up another six-play drive that ended in a 3-yard touchdown catch by Moss. After the teams exchanged three-and-outs to begin the second half, the Patriots embarked on a nine-play, 89-yard drive that ended on a 4-yard Jabar Gaffney touchdown reception that gave the Patriots a 24-7 lead. After another punt, the Patriots advanced into Bills territory on a 26-yard pass to Welker that was kept alive when Welker lateraled to Moss for another 11&#160;yards. Morris then ran in for a 4-yard touchdown. The Bills were able to pin the Patriots at their own 2-yard line on their next punt, but that only proved to be the beginning of a 10-play, 98-yard drive that came to a close when Brady connected with Moss on a 45-yard touchdown pass, extending the Patriots' lead to 38-7. The catch made Moss the first player in NFL history to have three games with at least 100 receiving yards to start a season. After an exchange of punts, the Bills began their ensuing drive with Edwards throwing an interception to cornerback Asante Samuel, which was returned 42&#160;yards to the Bills' 12-yard line. However, the Patriots could not generate any points off the turnover, with an Evans run on fourth down from the Bills' 8-yard line coming up short of the first down. The game would end on the Bills' next drive, sending the Patriots to a 3-0 start.
Question: How many yards was the first field goal scored by Gostowski?
Answer: 24