make t the subject of the formula

p divided by 2 square root t+r divided by g.