STANFORD — Reid Travis had 17 points and eight rebounds to lead four players in double figures, and Stanford beat Oregon State 79-66 on Wednesday night.

Marcus Allen also scored 17, Dorian Pickens added 15 and Robert Cartwright had 10 as the Cardinal beat the Beavers for the 21st time in the last 23 games between the two teams at Maples Pavilion.

Stanford (14-13, 6-9 Pac-12) led by as many as 25 but had to hold on after Oregon State (5-24, 1-15) pulled within 74-63 with 3:28 left on JaQuori McLaughlin’s 3-pointer.

Allen and Pickens scored back-to-back buckets for Stanford, and after Stephen Thompson’s putback for Oregon State, Pickens made a 3-pointer.

Drew Eubanks had 21 points and 14 rebounds for Oregon State. Gligorije Rakocevic added a season-high 16 points for the Beavers, who couldn’t follow up after beating Utah last week for their first conference win of the season.

Stanford built a quick double-digit lead despite a strong start by Rakocevic. The 6-foot-11-foot center, averaging 3.8 points going into the game, matched his season high in the first half while scoring 12 points on 6 of 8 shooting.

The Cardinal countered with a more balanced attack after adjusting to the Beavers’ zone defense. Travis, Allen, Cartwright and Pickens combined for 32 points in the first half to help Stanford take a 43-33 lead.

Travis got Stanford going again after halftime and helped push the Cardinal lead to 69-44.

Eubanks nearly brought Oregon State back. He scored 17 points in the second half, including 13 of the Beavers’ first 20.

The win pushed the Cardinal into a tie for seventh place in the Pac-12, still nowhere near enough to get a first-round bye in the conference tournament.