CREATE TABLE table_52883 ("Driver" TEXT, "Constructor" TEXT, "Laps" FLOAT, "Time/Retired" TEXT, "Grid" FLOAT)

What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?
SELECT SUM("Grid") FROM table_52883 WHERE "Time/Retired" = 'engine' AND "Driver" = 'teo fabi' AND "Laps" < '39'
SELECT SUM("Grid") FROM "table_52883" WHERE "Driver" = 'teo fabi' AND "Laps" < '39' AND "Time/Retired" = 'engine'