Tim Heitman-USA TODAY Sports

With Oakland down to its final out, Vimael Machin ripped a game-tying RBI double and Stephen Vogt reached on an error that brought home the decisive run as the Athletics rallied to beat the Texas Rangers 8-7 on Wednesday in Arlington, Texas.

The ninth inning rally gave the A's (52-91) a two-game split.

Tyler Cyr (1-0) got his first major league win after throwing 1 2/3 scoreless innings. Domingo Acevedo entered to record the final out and earn his first career save.

In the ninth inning, Oakland's Sean Murphy hit a leadoff single against Jose Leclerc (0-3). With two outs, Machin tied it with an RBI double to deep right field.

Vogt pinch-hit and tapped a grounder up the middle that deflected off shortstop Corey Seager's glove, allowing Machin to race home from second.

Dermis Garcia, Seth Brown and Tony Kemp homered for the A's, who posted just their third win in 13 games.

Mark Mathias, Marcus Semien and Jonah Heim went deep for the Rangers, who are in a 4-14 skid.

Garcia led off the second inning with a home run to left field off Dane Dunning, giving the A's the early lead. It was his second homer in two days.

The Rangers responded in their half of the second with four runs, on homers by Mathias and Semien off JP Sears.

For Mathias, it was his third straight plate appearance with a home run. In Texas' 8-7 win on Tuesday, Mathias tied the score with a home run in the seventh inning, and he belted a walk-off shot in the ninth.

Also in the second on Wednesday, Semien socked a three-run homer.

In the third inning, Mathias' single to center scored Nathaniel Lowe, who doubled.

Oakland capitalized on a two-out walk by Murphy in the fifth inning, as Brown followed with a two-run homer. Machin added an RBI double to cap a three-run inning, pulling the A's within 5-4.

Texas responded in the bottom of the fifth. Adolis Garcia tripled to lead off the inning off reliever Collin Wiles, and with two outs, Heim connected on a two-run homer.

Kemp made it a one-run game with a two-run homer off Dennis Santana in the sixth inning.

Dunning yielded four runs on six hits in 4 2/3 innings. Sears gave up five runs on seven hits in four innings.

More must-reads:

TODAY'S BEST
Former Red Wings head coach linked to open NHL job
How Patriots' Drake Maye has already impressed Jacoby Brissett
LeBron James, Giannis Antetokounmpo, Stephen Curry among Forbes' highest-paid athletes for 2024
Steve Cohen addresses if Mets could again be trade-deadline sellers
Tiger Woods ruins strong first round with sloppy finish at PGA Championship
Xander Schauffele makes history in first round of PGA Championship
NFL responds to speculation about Chiefs schedule and Taylor Swift
Despite hopes for change, NASCAR championship weekend will return to Phoenix in 2025
Chiefs will achieve something not done since 1927 with 2024 schedule
Caitlin Clark's debut was most-watched WNBA game in more than 20 years
Yankees' Aaron Judge comments on resurgence after bad slump
Odell Beckham Jr. reveals why he was 'hesitant' to join Dolphins
Lakers reportedly interested in adding three-time All-Star via trade
Luka Doncic fed off negative reactions in Game 5 win over Thunder
Celtics finally put away undermanned Cavaliers, advance to conference finals
Avalanche force Game 6 with big third period vs. Stars
MLB announces punishment for Astros' Ronel Blanco over foreign substance
Vikings HC shares big Justin Jefferson contract update
Rafael Nadal switches gears, gives major update on French Open status
DeMar DeRozan confirms desire to return to Bulls