(5,24)
Rectangle 1: side lengths 4 and (x+1)
y=4(x+1)= 4x+4
Rectangle 2: side lengths 3 and (2x-2)
y=3(2x-2)= 6x-6
4x+4=6x-6
-2x=-10, x=5
Option 1 with rectangle 1: y=4(5)+4, y=24
Option 2 with rectangle 2: y=6(5)-5, y=24
I graphed the linear equation on desmos.