I actually just figured it out. The right triangle containing angle a was not needed. That left a trapezoid remaining. Creating a right triangle from the top of the trapezoid and using the tangent function allowed me to find the longer height of the trapezoid. Then, it just took a simple tangent inverse to find the result.
There, ? = atan(tan(90 - b) + r/d) where tan() uses degrees.