A 13-year-old girl who along with another teenager was accused of attempting to murder a teacher at Willetton Senior High School in Perth pleads guilty to a downgraded charge.