A controlling offense is any crime or sentencing enhancement for which a sentencing court imposed the longest term of imprisonment. It is a controlling offense if the: defendant was 25 years of age or younger at the time of the offense, and he or she was given a determinate sentence; defendant was 25 or younger, and the minimum sentence was under 25 years and the maximum was life in prison; defendant was 25 or younger, and the sentence was 25 years to life in prison; or defendant was 17 or younger but not treated as a juvenile offender, and the sentence was life without the possibility of parole (an LWOP sentence).