Hi laqu,
Unfortunately there are too many variables in each person’s body type, sleeping style, individual preferences, physiology, and sensitivities to use a formula to know which mattress is best for you.
There is some generic information and guidelines in the putting the layers together and in the sleeping style, preferences, and statistics sections of the site as well as in the tips and tricks page here but these are just general guidelines that can provide some insights and help you understand some of the concepts behind mattress design and layering and are not really suitable to use as a specific suggestion for any particular person.
Post #2 here would also be worth reading because it will help you “define” your best mattress what is most important to you.
Post #1 here includes all the basic information, steps, and guidelines that can help or “arm” you with the information you need to make the best possible choice.
Phoenix