let
x----------> number of square jam sandwiches of Ken in the side x of rectangle
y---------> number of square jam sandwiches of Ken in the side y of rectangle
A1-------------> total number of square jam sandwiches of Ken
A2-------------> total number of square jam sandwiches of Sara
we know that
A1=xy
A2=[(x+2)(y+2)-xy]
A1=A2
xy=[(x+2)(y+2)]-xy------------ > xy=xy+2x+2y+4-xy
xy-2y=2x+4-------- > y=[2x+4]/[x-2]
testing different values of x to get a pair of whole numbers--> see the table attached I find 2 solutions