EUGENE, Ore. (AP) — Justin Herbert threw for 489 yards and four touchdowns and Oregon snapped a five-game losing streak with a 54-35 victory on Saturday over Arizona State.

Pharaoh Brown caught seven passes for a career-best 129 yards and two touchdowns as the Ducks (3-5, 1-4 Pac-12) finally got a conference win and appeared to snap out of their prolonged funk.

Herbert, a true freshman who was making his third career start after taking over the job from graduate transfer Dakota Prukop, has scored 12 touchdowns over that span. Herbert's passing yards against the Sun Devils matched Bill Musgrave's record of 489 set against BYU in 1989.

Herbert tossed a short pass to Brown, who took off down the sidelines and stiff-armed the last defender for a 75-yard touchdown on the Ducks' first series of the game. It was ninth touchdown pass: Last weekend he tied the school record with six TD passes in a 49-52 overtime loss at California.

The Sun Devils (5-4, 2-4) also started a freshman at quarterback. Dillon Sterling-Cole was pressed into service in last weekend's 37-32 loss to Washington State after Manny Wilkins was injured.

Sterling-Cole passed for 302 yards and his first career touchdown. Kalen Ballage ran for 62 yards and two scores, including a 15-yard run that got the Sun Devils within 30-22 in the third quarter.