Mets snap skid with timely hitting, quality pitching