YOU SAID:
I went to my friends house to have homework party
INTO JAPANESE
私は宿舎に宿題を持って行った
BACK INTO ENGLISH
I took homework on my dormitory
INTO JAPANESE
私は寮で宿題を取った
BACK INTO ENGLISH
I took my homework in the dormitory
INTO JAPANESE
私は寮で宿題を取った
BACK INTO ENGLISH
I took my homework in the dormitory
You've done this before, haven't you.