HOUSTON — Alberth Elis scored two late goals and the slumping Houston Dynamo rallied for a 3-3 draw with the Los Angeles Galaxy on Wednesday night.

The Dynamo (10-10-10), who are one point below the playoff line after going 0-3-3 since topping the Western Conference standings on Aug. 12, trailed 3-1 entering the last 10 minutes of regulation.

Hugo Arellano pulled down Elis in the box, leading to a successful penalty kick in the 84th minute. Four minutes later on a third straight corner kick, served by Vicente Sanchez, Elis got his head on the ball for his ninth goal.

The Galaxy (7-17-7), eliminated from playoff contention when Dallas won earlier Wednesday, had lost three straight — two by 4-0 counts — but got on the board quickly. Roman Alessandrini sent a centering ball from the left corner that Adolfo Machodo misplayed on an attempted clear and the deflection went off teammate DeMarcus Beasley’s chest in the third minute.

Alessandrini picked up his 11th goal in the 12th minute after Ashley Cole stole the ball at midfield.

Tomas Martinez fought off two defenders in the middle of the box to get one back with his first Dynamo goal in the 26th minute. But two minutes into the second half, Bradford Jamieson restored the two-goal lead with his second goal.