设长为x,宽为y
xy=12
(x-1)(y+1)=12+3=15
xy+x-y-1=15
x-y=4
x-12/x=4
x^2-4x-12=0
(x-6)(x+2)=0
x=6,x=-2(舍)
所以
x=2cm
y=6cm