let
x---------> length of the base of a rectangle
y--------->height of the base of a rectangle
we know that
perimeter of a rectangle=2*[x+y]
and
x=y+2------> y=x-2
step 1
inputs
x=3
x=5
x=10
step 2
find the outputs
for x=3
y=x-2----> y=3-2-----> y=1
perimeter=2*[3+1]-----> 8
for x=5
y=x-2----> y=5-2-----> y=3
perimeter=2*[5+3]-----> 16
for x=10
y=x-2----> y=10-2-----> y=8
perimeter=2*[10+8]----->36
see the attached table