randRange( 3, 5 ) randRange( 1, 5 ) randRange( 3, 9 ) randRange( 3, 9 ) I+J I*A+K*B
This is a polynomial derivative problem.

Let f(x)=Bx^{K}+Ax^I. Compute f'(1).
ANSWER

First, f'(x)=B(Kx^{K-1})+ A(Ix^{I-1}).

Then f'(x)=B*Kx^{K-1}+A*Ix^{I-1}.

Then f'(1)=K*B+A*I.

Now you just have to do the addition.