Knee Pain

I have always had knee pain when I go down hill on hikes. And now it’s starting to hurt when I run. any tips on what to do ?