Still looking for a win the 49ers played on home ground where they played their state rival, the Oakland Raiders. In the first quarter, the 49ers trailed early as kicker Sebastian Janikowski got a 27-yard field goal. Then he made a 24-yard field goal in the 2nd quarter. The 49ers replied with kicker Joe Nedney making a 25-yard field goal. They took the lead in the third quarter with QB Alex Smith making a 32-yard TD pass to WR Michael Crabtree. The Raiders cut the lead with Janikowski making a 40-yard field goal. The 49ers pulled away after Smith found TE Vernon Davis on a 17-yard TD pass.. How many yards was the longest field goal of the game?