f(x)= 2x+5 inputs (5) and (8)

So would the answer be 15 and 21

Yes.