Exchange rates feel mysterious, but the logic underneath is simple — and knowing it saves money on every trip and transfer.