Answer:
y = 44
Explanation:
Well if y varies directly with x it means that when y increases x increase and if y decrease x also decreases. 
So let us put this in a equation, 
y = kx 
where 'k' is constant 
so k = y/x 
let us put the figures of x and y from given first statement; 
x = 7 and y = 18 
so, k = 18 / 7 
which means, k = 2.57 
lets put this value of k in the equation above, 
we know from statement that, x = 17 and k = 2.57 
so, y = 2.57 (17) 
which means, y = 43.71
or we can round it off to, y = 44