if P varies directly as the cube of X and P =27, X =3, find P when X =2

If P varies directly as the cube of X, we can write:

P = kX^3

where k is a constant of proportionality. We can solve for k using the given values of P and X:

27 = k(3^3)
27 = 27k
k = 1

Now we can use this value of k to find P when X = 2:

P = k(2^3)
P = 1(8)
P = 8

Therefore, when X = 2, P = 8.