CREATE TABLE table_name_22 (grid INTEGER, laps VARCHAR(255), rider VARCHAR(255))
Which Grid has Laps of 24, and a Rider of marco melandri?
    
SQL: SELECT SUM(grid) FROM table_name_22 WHERE laps = 24 AND rider = "marco melandri"