-ого when the adjective stem is hard
Это проект молодого архитектора.
-его when the adjective stem is soft, or when spelling rule 3 applies.
Это машина моего хорошего друга.
-ой when the adjective stem is hard:
Сергей брат этой маленькой девочки.
-ей when the adjective stem is soft, or when spelling rule 3 applies:
Это дом нашей хорошей учительницы.