22.5 years after high school is age 40, not age 50. Doctors start pulling (small) salary 8 years after high school.
After medical school comes residency, which lasts from 3-6 years depending on speciality. Compensation during residency is $40k-$60k.
After residency, you can get a job. At that level of training, the salary will be $150k-$250k.
Optionally, you can get a fellowship after residency. This will be another 3-6 years of training, with compensation around $50k-$70k.
After fellowship, jobs pay in the $250k-$500k range.