CREATE TABLE table_1342256_40 (district VARCHAR(255), incumbent VARCHAR(255))
What is the district for james p. richards?
    
SQL: SELECT district FROM table_1342256_40 WHERE incumbent = "James P. Richards"