Question 1133467
You would need to law of cosine here to solve for side r. 

{{{r^2 = p^2+q^2-2pqcos(R-90)}}}
{{{r = sqrt(p^2+q^2-2pqcos(R-90))}}}


Then, use law of sines to solve for angle Q and angle P. 

{{{sin(R-90)/r = sin(P)/p)}}}
{{{sin(P) = psin(R-90)/r}}}
{{{P = arcsin(p*sin(R-90)/r)}}}

{{{sin(R-90)/r = sin(Q)/q)}}}
{{{sin(Q) = qsin(R-90)/r}}}
{{{Q = arcsin(q*sin(R-90)/r)}}}