B=(1/4)m(q+k)

Solve for q

1. Multiply both sides by 4

2. Divide both sides by m
3. Subtract k from both sides.