The answer
There is no universal number of years that every resume must cover. Give more detail to recent and relevant work, and condense older experience when it adds little to the target role. Follow applications that ask for a complete employment history separately. Select detail by relevance and available space, not by applying a year cutoff blindly.