I am given the following probability density function:

for 0<x<1 and 0<y<2

otherwise

I am to find P[X + Y > 1].

My attempts at the double integration failed.

The answer begins:

How did they pick which integral was inner?

How did they choose 1-x as the lower limit on the inner integral?