Losing five straight games and seven out of eight wasn't fun for the Utah Jazz, but they apparently learned some valuable lessons. Derrick Favors had 28 points and 14 rebounds, Gordon Hayward added 27 points and the Jazz defeated the Sacramento Kings 108-99 on Sunday, winning their second straight game after that skid. "I think in the past when we were losing seven (of eight), we were kind of stressing, kind of panicking. We started learning what it takes to win games." Utah (31-35) moved to within two games of Dallas and Houston, who are tied for seventh in the Western Conference playoff race. Jazz point guard Shelvin Mack, who had a career-high 27 points in a victory against Washington on Friday, scored 14 points and shot 4-for-6 from 3-point range. Rodney Hood had 12 points and Trevor Booker had 10 points and eight rebounds. Kings center DeMarcus Cousins scored 31 points, returning to the starting lineup after serving a one-game suspension for conduct detrimental to the team. He added 10 rebounds and five assists.