I don't have an answer to be honest though and I am not sure [m]any people do right now. It is a difficult problem but one we need to discuss and work on a solution for. I don't feel a universal basic income is the answer like some have suggested. Not that I am against UBI as part of a bigger solution but it is my personal opinion that a mind wasted is a tragic thing.
I have less faith than you that the market will value those new skills at the same level.
The Rust Belt in the US is the example I would point to. No job has appeared in those areas to absorb those people who would have been working in the mills or the mines.
I'm no romanticist. Those jobs sucked.
However, the market valued those jobs rather well at the time. Nothing has come along since that valued those people at the same level.
Not all "work" in life should be based around mercantilism.