We have been told from the question that the relationship between y and x is a direct variation.
x varies directly with y
then the relationship will be
y= k x
where k is a constant
so we can obtain k since the values of x and y have been given
k = y/x
y = 20, x = 12
k = 20/12
k= 5/3

The relationship is 5/3x