Solution:
Given that z varies directly as x and inversely as y, this is expressed mathematically as

Introducing a proportionality constant k, we have

When z = 123, x=6, and y=6 , k is evaluated to be

Thus, equation 1 becomes

To evaluate z when x =7 and y=8, we substitute the respective values of x and y into the above equation.
Thus,

Hence, the value of z when x =7 and y =8 is
