rectangle of perimeter A=2(2x+8+x-1)
                   =2(3x+7)
                   =6x+14.........................equation 1
rectangle of perimeter B=2(3x+5+2x-2)
                   =2(5x+3)
                   =10x+6.........................equation 2
now,eq 2-eq 1
   =10x+6-(6x+14)
   =10x+6-6x-14
   =4x-8
   =4(x-2)
Â