CREATE TABLE table_1342256_40 (district VARCHAR, incumbent VARCHAR)

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