Since the variation is generic, then we have an equation of the form:

Where,
k: proportionality constant.
We must find the value of k.
For this, we use the following data:
x = 2 then y = 6
We have then:

Clearing k we have:

Then, the equation is:

Substituting for x = 7 we have:


Answer:
The value of y for x = 7 is:
