Longoria has 4 RBIs as Rays beat Rangers 8-4