Algebra Examples

Solve for A (tan(x)+sec(x))^2=(A+sin(x))/(B-sin(x))
I am unable to solve this problem.