PORTLAND, Ore. (AP) — Two men were sentenced Tuesday in connection with a 2017 shooting that wounded a sleeping 9-year-old boy and his mother in their Gresham home.

The Multnomah County District Attorney’s Office said Rashad Banks and Nakiem Brown, both 26, will got to prison for the May 2017 shootout. Banks will spend 20 years in prison, and Brown will spend five, The Oregonian/OregonLive reported.

Banks was convicted of attempted murder, assault and other criminal charges in December. Brown was found not guilty of the shooting but was convicted of felon in possession of a firearm. A third person, Christopher Jordan, was also found not guilty of the shooting.

The shooting left Lamar Horsley, then 9, with major injuries to his head and torso.

According to prosecutors, Lamar and his mother, Cherie Thompson, were victims of gang violence, and the shooting was related to one which injured a member of the Hoovers gang. Banks, Brown and Jordan were all members of the Hoovers gang and sought retaliation against Ervan Herring, who prosecutors said was a member of a rival gang, the Woodlawn Park Bloods.

Herring, who was the former love interest of Thompson, was sleeping at the apartment. The two share a daughter. Herring and their daughter, who were sleeping in the same room as Thompson and Lamar, were not injured.