PITTSBURGH (AP) — A Pennsylvania woman charged with drowning her two youngest sons in their bathtub has been found guilty of third-degree murder but mentally ill.

Allegheny County Judge Jeffrey Manning delivered his verdict Thursday afternoon in Pittsburgh after hearing three days of testimony and arguments last week involving 43-year-old Laurel Schlemmer.

She faces up to 40 years in prison per child when she is sentenced June 8.

The McCandless woman’s attorney had argued her diminished mental capacity kept her from forming the intent to kill her sons, 6-year-old Daniel and 3-year-old Luke, in April 2014. Schlemmer has told police she killed the boys so she could be a better mother to their elder brother, who was 7 at the time.