Let
p(x,y) = x + y if x >= 0 and y >= 0
p(x,y) = 2x + y if x < 0 and y < 0
p(x,y) = x^2 + y^2 otherwise
What is p(p(1,-1),p(-5,2))?