Solve 745 = 87*q + 310 for q.
5