Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_name_54 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)
### Question:
Median household income of $40,340, and a Number of households smaller than 64,767 is what average population?
### Answer:
SELECT AVG(population) FROM table_name_54 WHERE median_household_income = "$40,340" AND number_of_households < 64 OFFSET 767