Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE table_name_26 (long INTEGER, gain VARCHAR, loss VARCHAR, avg_g VARCHAR)

### 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?

### Accurate SQL ###

SELECT SUM(long) FROM table_name_26 WHERE loss < 390 AND avg_g = 2 AND gain > 29