Write a procedure or function in Maple or Mathematica that takes as input a quadruple $(a,b,c,d)$ of reals and returns, when possible, a real $t$ such that $\left(\begin{array}{ll} a & b \\ c & d \end{array}\right) = R_t$ and an error message otherwise.