SAN FRANCISCO Buster Posey had three hits and four RBIs, Hunter Pence added three doubles and scored three times, and the San Francisco Giants broke out of their offensive slump with a 13-8 victory over the Minnesota Twins on Sunday that avoided a three-game sweep.