Whit Merrifield hit two homers and Salvador Perez, Alcides Escobar and Cheslor Cuthbert added solo blasts in Kansas City's win over San Francisco.