The values we have are these:
Input ....... Output
-2 ........ -6
3 ......... 9
0.5 .......... 1.5
7 ......... 21
If we multiply each of the input values by 3, we get the output values:
(-2) times 3 = -6
3 times 3 = 9
0.5 times 3 = 1.5
7 times 3 = 21
So the rule is: Output = 3 multiplied by the Input
Or y = 3x
where x is the input and y is the output