F(p)= 3p -2 and input is 2
replace input is 2 into F(p)= 3p -2F(2)= 3(2) -2F(2)= 6 -2F(2)= 4
F(2)=3(2)-2=4...............