Find an equation of variation where y varies directly as x and inversely as the square of w, and y=24 when x=8 and w=3.