the number of the members of a club is more than 20 and less than 50 . when 5 people sit at a table , other people exactly divided to 6 - people groups ( 6 people sit at a table ) or 7 - people groups ( 7 people sit at a table ) . if the members are divided to 8 - people groups , how many people will be left ?
the number of members is 7 k + 5 = 6 j + 5 the only number in this range which satisfies this is 47 . 47 / 8 = 5 ( 8 ) + 7 the answer is e .
reminder(add(lcm(6, 7), 5), 8)