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_21258 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text )

### Question ###
For team #40 chip ganassi racing which top 5 is the highest where top 10 is 5?

### Accurate SQL ###

SELECT MAX("Top 5") FROM table_21258 WHERE "Top 10" = '5' AND "Team(s)" = '#40 Chip Ganassi Racing'