That’s the sort of problem that raises questions. Why does it need a new shaft? Did the Owner skimp on anodes, motor home with a blade missing, or hit something? Was it a freak, one-time surprise thing, or something that could have been expected from the way he handles the boat and/or maintance? What else is wrong that this large problem is drawing your attention from? Lots of questions.
Taking a guess, a new shaft may cost around five boat units, installed. ($5000+/-) The boat will have to be hauled, the rudder may have to come off, the shaft pulled, perhaps new engine mounts since they’re in there anyway, new cutlass bearing, new shaft, maybe a new prop?, verifying the alignment, remounting the rudder… If the boat is worth making an offer on, your surveyor should have a more informed idea of shaft replacement costs.