Letp(x,y)={x+yif x≥0 and y≥0,x−2yif x<0 and y<0,3x+yotherwise.What is p(p(1,−1),p(−5,−2))?
p(p(1,-1),p(-2,-5)) = -5.