From the statement of the problem, we know that:
0. y varies directly with x,
,
1. y = 6 when x = 3.
1) From point 1, we must have:

2) From point 2 we know that y = 6 when x = 3, replacing these data in the last equation, we have:

Solving for k, we get:

3) The equation is:

Answer
• Equation: ,y = 2x
,
• Graph