You can't make a maxim as to in which situation you pick each. It's like asking "What do you choose if you can only have one: food/shelter or water/sleep?" Have too little of either of those options and you die.
Have too little of freedom and liberty and you can't have justice or equality. The only way to have so little freedom is if many people are having their options constrained, and until robots exist, that means other people will be oppressing them, reducing equality (at least in terms of power). And too much restriction of freedom is by its necessity unjust.
Have too little equality and justice and you can't have freedom or liberty. If you can't stop people from enslaving or raping or killing or exploiting each other, liberty doesn't exist and freedom means nothing. And if there's too much inequality, you won't get any freedom either, because those with more power will deny others' freedoms.
Justice is a prerequisite for freedom. You need justice first. If I can act unjustly to you, I can violate your rights. Your right to swing your arm ends at my face.
After you have justice, you can have freedom. People need to have a reasonable ability to choose for themselves and have their own options in order to have equity. If we're not all able to act like adults and make our own choices, we're not being treated equitably.
Freedom then must produce equality and liberty, which are social results created by having a proper balance of freedom and justice.