When I bought my first house, the rule of thumb was 2x your yearly income. I think that this is still a good idea.
When we bought ours we went by only one of our incomes. Doesn’t work after retirement.