when positive integer k is divided by 5, the remainder is 2. when k is divided by 6, the remainder is 5. if k is less than 24, what is the remainder when k is divided by 7?  Choose the correct option:
A) 2	B) 5	C) 6	D) 3	E) 8
<gadget id="calculator">12 + 5</gadget>
<output>17</output>

<gadget id="calculator">17 % 7</gadget>
<output>3</output>

<result>D</result>
when positive integer k is divided by 5, the remainder is 2. when k is divided by 6, the remainder is 5. if k is less than 24, what is the remainder when k is divided by 7?
reminder(add(const_12, 5), 7)
"cant think of a straight approach but here is how i solved it : k is divided by 5 and remainder is 2 . this means k = 5 n + 2 ( n is an integer ) so the possible values of k = { 2 , 7 , 12 , 17 , 22 } ( less than 24 ) secondly , if k is divided by 6 , the remainder is 5 = > k = 6 m + 5 so the possible value set for k = { 5 , 11 , 17 , 23 } ( less than 24 ) 17 is the only common number in both the sets . hence k = 17 answer : d"