This is one of those times when you really should speak with an attorney, not a real estate sales person. But, in general, here are 2 rules of thumb:
1 - Uncle Sam (that is, taxes) always get priority
2 - Whoever or whatever is filed first or earlier usually gets priority
If you cannot afford a lawyer, seek out a legal professional via the Legal Aid Society, which is low cost to no cost.