To calculate the total magnification of a sample with an ocular lens power of 15x and using a 40x objective lens, we can use the formula X = eyepiece power x objective lens power. Plugging in the values, we get:
X = 15 x 40 = 600x
Therefore, the total magnification of the sample is 600x.