@Alex Mora The others covered the basic concepts nicely so I'll throw in a different strategy along the same lines.
@Will Fraser is exactly on point with the "a reduction in your living expenses is a successful house hack." The next key is to think of your ROI on the house hack.
If you were paying $2000/month in rent and utilities, then bought a house that required a total of $45,000 out of pocket, your ROI is going to depend on how much you end up saving vs. the $2000.
Savings: ROI:
$200 5.3%
$500 13.3%
$1000 26.7%
The other possibility is saving very little on your housing expenses but playing the appreciation game. If you are fairly sure your property is going to be worth substantially more 25+ months down the road this can be another possibility for a successful house hack. The primary downside is all of your benefit needs to wait until the end of the sale. The key here is to make sure you live in the house for 24 months and you won't have to pay capital gains tax on the first $250k of profit on the sale. This can be forced appreciation as well as market appreciation.
Best of luck with everything no matter what you choose to do!