    Sentence 1: What was used to create a  new electromagnetic theory to reconcile  the troubles with electromagnetic theory  as it used to stand?    Sentence 2: However, attempting to  reconcile electromagnetic theory with  two observations, the photoelectric  effect, and the nonexistence of the  ultraviolet catastrophe, proved  troublesome.