human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Name, Gain, Loss, Long, Avg/G
###Question: When the Gain is 29, and the average per game is 2, and the player lost less than 390 yards, what's the sum of the Long yards?
gpt
SELECT SUM Long FROM table WHERE Loss < 390 AND Avg/G = 2 AND Gain > 29