San Antonio, TX (SportsNetwork.com) - Brett Hundley began to jump up and down with his arms raised in victory before Paul Perkins crossed midfield.

Perkins ran for 194 yards and two touchdowns, including a backbreaking 67-yard scoring run late in the fourth quarter to seal No. 14 UCLA's 40-35 victory over No. 11 Kansas State in the Alamo Bowl on Friday.

Kansas State fought back from a 31-6 halftime deficit, cutting the margin to 34-28 after Jake Waters plunged in from a yard out with 4:54 remaining.

UCLA (10-3), though, had an answer.

Faced with a 2nd-and-13 at its own 33 following a false start penalty, Perkins burst through a huge hole off the left side of the line untouched and strolled the rest of the way for the score. The ensuing two-point conversion was unsuccessful.

Waters hit Tyler Lockett for a 29-yard touchdown to claw Kansas State (9-4) within 40-35, but an onside kick was recovered by the Bruins.

UCLA had a 331-31 advantage in rushing yards.

Hundley, in what most likely was his last collegiate game, completed 12-of-24 passes for 136 yards with a touchdown and added 96 yards and two scores on the ground for the Bruins, who have won consecutive bowl games for the first time since winning eight in a row from 1983-1991.

"It's just a good way to go out on top," Hundley said.

Linebacker Deon Hollins registered three of UCLA's seven sacks.

Waters was 31-of-48 for 338 yards with two touchdown passes to Lockett, who had 13 catches for 164 yards for Kansas State, which was seeking its third 10- win campaign over the last four seasons.

"We had a chance to come back, we had a great rally ... unfortunately we came up a little short," Lockett said.

Curry Sexton had 10 receptions for 104 yards in defeat.

The Bruins outgained the Wildcats 312-104 in the first half en route to their 31-6 cushion, but Kansas State put together a 17-play, 75-yard march to start the third and begin its comeback attempt.

Kansas State moved the chains a trio of times on third down, picked up a fourth down conversion and Waters hit Lockett for a 3-yard score on a 4th-and- goal. Waters also found Lockett for the two-point conversion and get the Wildcats within 31-14.

Ryan Mueller ripped the ball away from Perkins on the second play of UCLA's next touch and Dakorey Johnson made the recovery. The Wildcats capitalized on the turnover when DeMarcus Robinson found the end zone from two yards out, whittling the gap to 31-21 late in the third.

Hundley appeared bottled up on a 3rd-and-11 before breaking free along the right sideline for a 40-yard gain, setting up Kai'imi Fairbairn for a 44-yard field goal.

The Wildcats were ready to punt the ball back to the Bruins on a 4th-and-11 from the UCLA 47 with under seven minutes to go, but UCLA committed a substitution infraction. The penalty made fourth down more manageable and Waters fired an 18-yard completion to Sexton. He found Sexton for a 12-yard reception on the next play and Waters finished off the trek with his 1-yard TD keeper.

Hundley ran in from 10 yards out to conclude UCLA's opening series and following a Kansas State three-and-out, Fairbairn made it 10-0 with a 27-yard field goal.

The Wildcats moved the sticks just once before punting again and Hundley broke off a 28-yard touchdown run down the left sideline for a 17-0 spread late in the first.

Matthew McCrane split the uprights from 47 and 29 yards, respectively, on consecutive Kansas State possessions to pull the Wildcats within 17-6, but the Bruins found the end zone twice more prior to halftime.

Perkins ran for a 32-yard score and Hundley tossed a 7-yard touchdown pass to Devin Lucien in the waning moments of the half.

Game Notes

UCLA hasn't finished higher than 16th in the AP poll since 1998 ... It was the third time the programs met, but their first encounter wasn't until 2009. The Bruins lead the series 2-1 ... Bruins linebacker Eric Kendricks posted two sacks ... UCLA was 7-of-15 on third down, while K-State finished 6-of-16.