How can ionization potential and electron affinity be used to predict whether or

not a simple synthesis reaction will occur between a metal and a non-metal.

If the EA is high enough to overcome the IP, then enough energy is there to make the transfer. In practice that are other factors to consider.