Final answer:
The value of y when x is 5 is 40.
Step-by-step explanation:
Since xx and yy vary directly, we can use the direct variation equation yy = kxx, where k is the constant of variation. We know that when xx is 2, yy is 16, so we can substitute these values into the equation to find the value of k:
16 = k(2)
k = 8
Now, we can substitute the value of k into the equation to find yy when xx is 5:
yy = 8(5) = 40
Therefore, yy is 40 when xx is 5.