It's normal for the cotyledons to turn yellow. Their main purpose is just to store some starch, protein, and fat for the seedling. They are only used in a very minor role for photosynthesis. Probably just to help orient the plant to face upwards.