(10) if the child is petitioned and found by the court to have committed a controlled substance offense under sections 152.021 to 152.027, the court shall determine whether the child unlawfully possessed or sold the controlled substance while driving a motor vehicle.