I've got way more than ten years experience.
Some one with less getting paid more is not wrong. They are doing something of more perceived value than I am. You get paid what your employer thinks you are worth. Leave and go somewhere where you are more valued, or work on the problem and become more valued where you are.
Longevity is not seniority, I've worked in places with that mindset, trust me it's not pretty. There were guys at the top of the food chain, I could have out performed twenty-five years ago...