Three numbers X, Y, and Z are in the ratio 2:7:8. If 12 is subtracted from Y, then three numbers form a geometric sequence (in the order X, Y–12, Z). Find X, Y, and Z.