Texas man sentenced to 24 years in prison for selling weed