Table schema:
CREATE TABLE table_1342256_40 (district VARCHAR, incumbent VARCHAR)

Question: What is the district for james p. richards?
SQL: SELECT district FROM table_1342256_40 WHERE incumbent = "James P. Richards"