X-ray vs. skewer....
Pins and skewers involve an attacking piece inline with 2 pieces of your opponents. A x-ray may look through 3 or more pieces , no matter whose they are. A x-ray may be just one piece of your own. My rook
x-rays your queen through my own Bishop. Your queen is neither skewered or pinned.
B something+, then my rook takes your queen. Edited to add - A skewer example similar to the x-ray. Your Knight on a8 and queen on b7. I play Bc6 which is protected. Your knight is skewered. You must move your Queen or lose it. A x-ray that turns into a skewer. Same setup on the white diagonal again your N on a8 / Qb7 - my pawn d5, B on e4, Q on f3. My B is x-raying your Knight through my pawn and your Queen. I play d6, and only now is your Knight is skewered.
Further reading examples - https://en.wikipedia.org/wiki/X-ray_(chess)
Also when you are not understanding a x-ray puzzle, compare it directly with puzzles from the skewer section.