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_39 (type VARCHAR, state VARCHAR, royal_house VARCHAR, name VARCHAR)
### Question:
What type of state was Lu, when Yi was the ruler from the royal house of Ji?
### Answer:
SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu"