Read the next text:

X-ray inspection systems are used among other things to detect metals in food products. Barbara S. Askins patented in 1978 a method for developing these images that allows food to be underexposed - that is, to reduce the exposure time - to X-rays, with the advantage that this has for health.

And answer the following question:

Why do X-rays allow us to detect metals?