I never realized that Hyundai makes a $30K car

, but I guess the disposable brand has come a long way. They certainly have strong sales numbers this year. Gotta check out the Genesis!
Not to Monday morning quarterback but I think he's done the right thing. Besides $4k for the tranny and maybe another $4K for the engine, he probably needs to spend another $2K on other repairs like brakes, alternator, radiator, tires, oxygen sensors etc.
With Hyundai's 5-year/60K mile new vehicle warranty, 5-year roadside assistance and 10-year/100K mile powertrain warranty he basically has to pay only for routine maintenance. And if he sells the Hyundai in 5 years and get $10K for it (KBB.com 33% 5-year residual value for Sonata Limited 2.4L), minus the $10K he would have dumped into the Camry, your friend would have only paid $10K for the use of a new car over 5 years.
That's about $167 per month and all the time under new car warranty. I say good deal.