Integrate x first?

The integral would have to be split up into the light and dark areas
since the lower boundary of integration is x=0 in the light region
and
in the dark region.
Integrate y first!

The boundaries of integration will be
![]()
After integration over y, the remaining region of integration over x will be a line segment:
![]()
![]()