I'm surprised NYC is 190k vs Bay Area at 263k and Seattle at 240k. Maybe there's just more non-tech industry software jobs pulling down the median?
$400k * 0.6 = $240k post tax
$240k - $36k rent = $204k
$204k - $50k annual expenses = $154k
So if you just work that job for 3-4 years you'll easily have a heavy down payment for a house, assuming no promo, no raises.
If you work the job for 7-8 years you can buy a house (more like a townhouse) all in cash. Not going to be the best house on the market, but it's doable.
This is all not considering investing in the stock market, raises, being frugal with your expenses, living with roommates to save up a bit, etc. there's lots of ways to parlay more money than most other people will ever make annually into a home