Back in the day, there was an easy formula for determining what you could afford.
If your household makes $48 K per year,
A house was 2 1/2 times, or about 120K
A car was 5 months, or 20K
The problem is many people think they need a 40K car with all the do-dads, or a 50K pickup to commute.