Three sensor readings x, y and z satisfy x+y+z=2, x+2y+3z=p and 2x+3y+4z=p2, where p is a real number. For some values of p the readings can be found, and for others they cannot. What is the sum of all the values of p for which the system has a solution?