I am trying to simplify this to expressaas a function oft,r,p. It is killing me. Any help would be most appreciated.

a^2=[(at)^2 + r^2]/p

Edit: This problem is trivial, but I am also looking for a solution given the additional constraint,

t=ab,