Suppose q is directly proportional to the square root of h and inversely proportional to the cube of j, and q=24 when h=16 and j=2. Find q when h=4 and j=1/2.