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