set a of 8 positive integers may have the same element and have 40. and set b of 8 positive integers must have different elements and have 40. when m and n are the greatest possible differences between 40 and other elements ’ sums in set a and set b, respectively, m - n =?  Pick one
A) 21 B) 29 C) 23 D) 25 E) 26
<gadget id="calculator">8 + 2</gadget>
<output>10</output>

<gadget id="calculator">10 + 8</gadget>
<output>18</output>

<gadget id="calculator">40 - 18</gadget>
<output>22</output>

<result>A</result>
set a of 8 positive integers may have the same element and have 40. and set b of 8 positive integers must have different elements and have 40. when m and n are the greatest possible differences between 40 and other elements ’ sums in set a and set b, respectively, m - n =?
subtract(40, add(add(8, const_2), 8))
this is maximum - minimum . hence , 40 - ( 1 + 1 + 1 + 1 + 1 + 1 + 1 ) = 32 and 40 - ( 1 + 2 + 3 + 4 + 5 + 6 + 7 ) = 11 . so , 32 - 11 = 21 . the correct answer is a .