Step 1: Understand the inequalities.
From the conditions:
- \(S>P>T\) means \(P\) is between \(S\) and \(T\).
- \(R<T\).
- Also, \(P<Q\).
So the relative order is:
\[
R<T<P<S, Q.
\]
Step 2: Identify the position of \(P\).
Since the digits \(\{1,2,3,4,5\}\) must all be used, there must be exactly:
- two digits smaller than \(P\) (\(R, T\)),
- and two digits larger than \(P\) (\(Q, S\)).
Thus, \(P\) is the middle element, i.e., the median of \(\{1,2,3,4,5\}\).
Step 3: Conclusion.
Therefore,
\[
P = 3
\]
Final Answer:
\[
\boxed{3}
\]