Answer :

Given

The difference between input and output is 3

Therefore,

For example

first input - first output

[tex]5-2=3[/tex]

second input - second output

[tex]6-3=3[/tex]

The final answer is

[tex]n-3[/tex]

View image FranklynH741137
View image FranklynH741137