Better notation will resemble the two forms, and .
Begin with the second form, the one using two terms, and combine into a single rational expression.
, and this is comparable in form to the first given rational expression. Now the comparison of corresponding expressions or variables and numbers gives you:
and simpler -----b is obvious, and solving for a is simple. .