Up to 15 years of experience should be on a resume. Any jobs you did over 15 years ago probably aren’t good representations of your current skill set, and should be left off your resume.
However, always look to the job listing before deciding how many years of experience should be on your resume. If the job listing states that you need 20 years of relevant work experience, then include 20+ years’ worth of work history in your resume experience section.
Also, all the experience you include on your resume should be relevant to the job you want. A resume that lists five years of highly relevant experience is more likely to land you a job than one with 10 years of irrelevant experience.