.
To check the formula, simply substitute value of x from the table into the right side of the formula
and calculate its value; then compare with the corresponding value of y from the table.
You will see that every time the formula produces a correct value.
It justifies the solution (the formula).
If you want to know how to deduce this formula on your own,
divide a value of y from the table by the corresponding value of x.
Every time you will get the same value of 3:
= 3.
It means that y = 3x for all given points and that the relationship is this linear function.
Solved, with detailed explanations.