CREATE TABLE table_name_39 (type VARCHAR(255), state VARCHAR(255), royal_house VARCHAR(255), name VARCHAR(255))
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"