Solve for j.

B=j+q/2

You'd try to move all variables (except j) and constant terms to the other side.

B=j+q/2
B-q/2=j
j=B-q/2