Schema: 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?
SQL: SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu"