Without trying to sound overly simplistic (because I"m no expert) it's called arbitrage; http://www.investopedia.com/terms/a/arbitrage.asp