how do i solve this problem?

If two shapes are similar that means they have the same scale. Triangle ABC is similar to triangle XYZ which means the sides AB and XY are scaled the same way. Sincy XY is 15, you can divide 15 by 6 to get 2.5 (scale factor). Now you can multiply AC in triangle ABC by 2.5 to get XZ which is going to be 30 inches.