Our son at age 22 bought his first unit. One year later, he is about to move into his first house, half share (renting out the unit). It can be done, even on a salary less than "average".
You just have to lower your expectations (as we all had to when we first bought) and compromise, and work...