What Type Of Doctors Perform Knee And Hip Replacements And What There Average Salary?

I over heard someone saying they just had there knee replacement, a procedure which cost somewhere near $40,000, aspiring to be a doctor I wanted to know what kind of doctors perforned those operations.