Your scanner should print out the code for which solenoid that has failed, needing replacement. If the transmission has a zillion miles on it, well thats another story where you should be thinking about a rebuild, or reconditioned replacement transmission. Toyota replacement parts are always best.