The total is 94 units.
A square has four equal sides so...
(5x-1)+(4x+3)+(5x-1)+(4x+3)=94
Combine like terms
19x+4=94
Subtract 4 from both sides
94-4=90
18x=90
Divide by 18 on both sides
90/18=5
X=5
Plug 5 in for x on the length of PQ
4(5)+3
20+3=23
Length of PQ=23 units