Looking for advice


Good evening I'm looking at possibly buying a 2007 Mazda 3 with the 2.3 and 238,000 miles. It has the AT light on and the P0757 shift solenoid "b" stuck on and P0753 shift solenoid "A" electrical codes thrown. Body and motor appear to be in good shape, no other visible issues.

My question is if I can get it cheap is it worth fixing? Would I be getting into a pit that could end up killing my wallet?

Thank you for the help.