Two terrorists who carried out a stabbing attack against two elderly women in 2016 were sentenced to 18 years in prison on Monday.