Ai+B = Pi+Q