Given the task definition and input, reply with output. This task involves annotating the answer type to a given question that involve some kind of complex reasoning (including numerical reasoning). Note that the questions require looking at more than one part of the passage to answer. There are 3 possible answer types (i) spans, (ii) numbers and (iii) dates. If the answer can be found in the passage, label it as "span". If the answer is a number, label as "number". Similarly, label "date" if you think the answer to the given question is a date.

Passage: Trying to snap a two-game skid, the 49ers stayed at home for a Saturday night interconference battle with the Cincinnati Bengals.  With QB Trent Dilfer out with an injury, back-up Shaun Hill would be making his first career start. After a scoreless first quarter, the Niners drew first blood in the second quarter as Hill got a 3-yard TD run.  However, the Bengals would take the lead as kicker Shayne Graham managed to get a 24-yard field goal, while QB Carson Palmer completed a 52-yard TD pass to WR Chris Henry.  The Niners would end the half as Hill completed a 17-yard TD pass to TE Vernon Davis. In the third quarter, San Francisco increased their lead with kicker Joe Nedney managing to get a 29-yard and a 38-yard  field goal.  In the fourth quarter, Cincinnati tried to mount a comeback as Graham kicked a 35-yard field goal.  Fortunately, the Niners' defense held on for the impressive victory. With the win, the 49ers improved to 4-10.  With the Rams' loss to the Packers, the Niners now sit in 3rd place in the NFC West.
Question: How many yards of field goals were kicked in the third and fourth quarters?

number