After opening the season 3-for-7 on field goal attempts, Detroit kicker Nate Freese was cut during the week and was replaced by Alex Henery.  Henery made good on his first FG attempt for his new team, a 51-yarder to tie the Jets at 3-3 in the first quarter. The Lions put together two TD drives in the second quarter to go up 17-3. First, Matthew Stafford hit Jeremy Ross on a 59-yard bomb. Stafford then connected with first-round draft pick Eric Ebron for a 16-yard TD, giving Ebron his first NFL touchdown. Jets QB Geno Smith hit Eric Decker with an 11-yard TD pass to close the gap to 17-10. Early in the fourth, Stafford found the right pylon for a 1-yard TD run, making the score 24-10. Chris Johnson rambled 35 yards for a touchdown midway through the final quarter, pulling the Jets within a touchdown again, at 24-17. But Detroit's defense was able to force a punt on New York's final possession, and the Lions ran out the clock thereafter.

Answer this question based on the article: How many points ahead was the leading team ahead midway through the final quarter?
7