input (f) 5,10,2,8

Output f(x) 22,47,7,37

My question is what is the rule?

if you were listening in class you would know!!!!