======================================================
Explanation:
Since T is the midpoint of PQ, this means the smaller pieces PT and TQ must be equal. In other words, T divides PQ in half.
PT = TQ
5x+7 = 9x-9
5x-9x = -9-7
-4x = -16
x = -16/(-4)
x = 4
Use this to find each segment length.
Both pieces are 27 units long, which confirms the answer.