Philips Interview Question

Explain how an x-ray machine works?