why did my second gear on my transmission go out with my airconditioning? on 1999 GMC Jimmy

I am unable to turn my air conditioner on after noticing that I also have no second gear in my automatic transmission

Asked by for the 1999 GMC Jimmy
Separate systems, may be a coincidence. Have a reputable repair shop/top shop look at your vehicle. Goodluck!
maybe you are right but my engine light is on. Could it be a bad solenoid?