Answer:
1/2, - 1/2
Step-by-step explanation:

Write the dimensions on both the sides
The dimensions of T are [T]
The dimensions of L are [L]
The dimensions of g are
So,
![[T]=[L]^(p)][LT^(-2)]^(q)](https://img.qammunity.org/2020/formulas/physics/high-school/s2e8guzfck2bn14skamq3820wcaajytv2o.png)
![[T]=[L^(p+q)T^(-2q)]](https://img.qammunity.org/2020/formulas/physics/high-school/nzds7fcm6l015zd05k5wbfz4ywnm53jjn2.png)
Now compare the dimensions on both the sides for the corresponding terms
p + q = 0 ...... (1)
-2q = 1 ......... (2)
By solving equation (1) and (2), we get
q = - 1/2
p = 1 / 2
Thus, the value of p and q are 1/2 and - 1/2 respectively.