If y varies directly as x, and y=24 when x=16,
find y when x=12.​