Once there was a king in china. All the people loved him. 두 문장을 합치면 Once there was a king in china (whom)  all the people loved.괄호안에 whom 을 써야하는 이유를 알려주세요. 성의있는답변 부탁 드립니다.

All the people loved him. 이 문장에서 him(=a king)이며,

선행사 a king이 loved의 목적어이기 때문에 목적격을 쓰는 것임.

참고로 목적격인 경우 who를 써도 무방함.

다른 예문) This is the girl whom I met yesterday. 이 사람이 내가 어제 만났던 소녀다.

선행사 the girl이 met의 목적어이기 때문에 whom을 쓴 것임