Since segments ST and PQ are parallel, triangles SRT and PRQ are similar due to the AAA postulate. In general, the ratio between the corresponding sides of two similar triangles is constant; therefore,
Furthermore,
Finding PR and RS,
Then,
Solving for PS,
Solve the quadratic equation in terms of PS, as shown below
And PS is a segment; therefore, it has to be positive.