Find the relation between x and y:
You can see that the given data that is complete (input (x) and output (y)) are related as follow:

Example:
When x is 5:

When x is 12:

Then, use the equation y=3x-2 to find the value of e and f:
To find e: substitute in the equation the y by 10 and find e (x):

e= 4
To find f: substitute in the equation the x by 10 and find f (y)

f = 28