Tyrese Maxey scored 40 points, including the winning layup with 1.3 seconds remaining, and Joel Embiid had 37 points as the 76ers rallied to edge the Sacramento Kings 113-111 Thursday night.