Joey wrote a system of equations on a blackboard, where each of the equations was of the form or for some variables or integers . Then Sean came to the board and erased all of the plus signs and multiplication signs, so that the board reads: If are integer solutions to the original system, find the sum of all possible values of .