Solve -16 = 3*q - 31 for q.
5