Since y is directly proportional to x2, we can write y=kx2. Given y=50 when x=5, we find k=2. Thus, y=2x2. As x is inversely proportional to z, x=zm for some constant m. Substituting y=98 into 98=2(zm)2 leads to z2=982m2=49m2. Since with z=257, x=5, we find m and calculating for z gives z=51.