When an adolescent offender is convicted of an offense, the court shall sentence the defendant to any sentence authorized to be imposed on a person who committed such offense at age eighteen or older. When a sentence is imposed, the court shall consider the age of the defendant in exercising its discretion at sentencing.