can you please show me how to set this up?

The variables x and y vary directly. When x is 3, y is 6. Find x when y = 2/3

x = k y

3 = k * 6 ... k = 1/2

x = 1/2 * 2/3 = 1/3