BALTIMORE (AP) -- Manny Machado homered off Cory Rasmus leading off the 12th inning to give the Baltimore Orioles a 7-6 victory over the Los Angeles Angels on Tuesday night.Machado hit a 1-2 breaking ball from Rasmus (2-1) into the seats in left field to end the back-and-forth duel between AL contenders.Ryan Webb (3-1) worked out of a two-on, two-out jam in the top of the 12th for the Orioles, who improved to 12-3 in extra innings. Adam Jones and Nick Markakis homered for Baltimore, playing its first home game since the All-Star break.Josh Hamilton homered and had three RBIs for the Angels, who have dropped eight of their last 11 against the Orioles.A potential pitching duel between Jered Weaver and Chris Tillman turned into a slugfest, as both former All-Stars left after the fifth inning with Baltimore leading 6-5.Weaver gave up a season-high six earned runs and walked four. Tillman yielded five runs, three earned, and six hits - including three doubles and a home run.After Hamilton delivered a run-scoring grounder in the top of the first, the Orioles scored twice in the bottom half. Jones drove an 0-2 fastball over the left-field wall - giving him 20 home runs for a fourth straight season - and J.J. Hardy added an RBI single.Los Angeles capitalized on a throwing error by Tillman to take a 3-2 lead in the second before Machado doubled in a run in the Orioles' half.After Hank Conger hit a sacrifice fly for the Angels in the fourth, Weaver issued two walks in the bottom half and Markakis followed with a drive off the right-field foul pole to make it 6-4.Hamilton homered in the fifth and tied it in the seventh with an infield hit.