I cant figure out the rule on this so can you please look at the png and explain the answer please

Answer:
9 ➡ 47
12 ➡ 62
x ➡ 5x + 2
Step-by-step explanation:
I used guess and check
When multiplied by 5 and add 2, it works
1 * 5 = 5 + 2 = 7
8 * 5 = 40 + 2 = 42