Reid Travis scored 20 points and Daejon Davis had 17 as Stanford snapped a four-game losing streak with a 70-54 win against Montana on Wednesday night.

Stanford led just 56-54 when it ran off the game’s final 14 points.

Davis scored six of his points in the final 3:16 for the host Cardinal (4-5), which lost three times last week at the PK80 tournament in Portland, Oregon.

Michael Humphrey added 12 points and 12 rebounds for Stanford and Robrt Cartwright scored 11. Travis reached 20 points for the seventh time in nine games.

Michael Oguine led the Grizzlies (4-3) with 19 points and Bobby Moorehead scored a season-high 16 points. Ahmaad Rorie, Montana’s leading scorer at 18.8 points per game, shot 1 for 12 from the field and scored a season-low four points. Montana shot 29 percent from the field, including 4 for 25 from beyond the 3-point arc.

The Cardinal avoided losing a fifth consecutive non-conference game for the first time since the 1979-80 season.

Stanford coach Jerod Haase made a lineup change, going with Cartwright in the backcourt to provide ball-handling help for freshman point guard Davis. Freshman Isaac White, the Cardinal’s No. 2 scorer, did not start for the first time this season.

Stanford women 86, San Francisco 66

DiJonai Carrington and Alanna Smith scored 19 points apiece, Kiana Williams added a career-high 17 and No. 16 Stanford made a school-record 11 3-pointers in the second half to pull away for a win against San Francisco on Wednesday night.

The Cardinal (5-3) trailed 28-24 at the half as both teams shot less than 30 percent. For much of the second half, both teams shot better than 60 percent, with Stanford finishing at 59 (23 of 39) and the host Dons dropping to 50 percent.

Stanford quickly passed USF in the in the second half but back-to-back 3-pointers by Ninni Salmi put the Dons up 40-38. A 10-2 run put the Cardinal up for good and they led 56-49 after three quarters.

Stanford made 6 of 12 3-pointers in the fourth quarter.

Williams led the long-range attack with five 3s. Smith, Carrington and Alexa Romano, who finished with 13 points, had three each. Smith also had 11 rebounds for her third consecutive double-double and Kaylee Johnson grabbed 14.

Brittany McPhee, Stanford’s leading scorer at 16.5, missed her fourth consecutive game with a right foot injury.

Salmi and Michaela Rakova had 15 points each for San Francisco (2-4). The Dons are coached by Molly Goodenbour, who won two national championships playing for Stanford from 1989-93.