Typical self-funded searcher here. Lenders, help me out, please!

RE for sale with biz, and due to the nature of the business kind of hard to separate from the opco.

When does it make sense to buy the RE also?

How would it work? SBA 7(a) for the biz and SBA 504 for the RE? What are the pros and cons?