If the area of the larger square is subtracted from twice the area of the smaller square, then the r