solve 71 = 7 + n d, 27 = 7 + 5d