now elros and elrond his brother were descended from the three houses of the edain , but in part also both from the eldar and the maiar ; for idril of gondolin and luthien daughter of melian were their fore-mothers .