The least common denominator of 17 and 21 (the denominators above) is 357.
17 goes into 357 21 times, so you multiply 1 by 21 and get that you had 21/357.
21 goes into 357 17 times, so you multiply 7 by 17 abd get that your friend had 119/357.
Your friend had more.