See the following scan. The reason for multiplying by 2, is the area of integration is 1/2, as shown by the shaded area. x is the larger of the two numbers, which can range from 0 to 1. y is the smaller number, which can range from 0 to x.
Michael Shackleford, A.S.A.