Solve for r q=9r^2+16s^2r^2