Solve each variation problem.

n varies directly as q, and n= 39 when q=3. Find n when q=8.

To solve this variation problem, where n varies directly as q, we can use the formula for direct variation:

n = kq

where k is the constant of variation.

To find the value of k, we can substitute the given values into the formula and solve for k:

39 = k * 3

Dividing both sides of the equation by 3, we get:

k = 13

Now that we know the value of k, we can find n when q = 8 by substituting the values into the formula:

n = 13 * 8

n = 104

Therefore, when q = 8, n is equal to 104.