1. X-ray machine hits target with electrons and EM radiation flies out. 2. In the photoelectric effect, you hit target with EM radiation and electrons fly out.