If y varies directly as x and y=24 when x=8, find y when x=7​