virginia, adrienne, and dennis have taught history for a combined total of 87 years. if virginia has taught for 9 more years than adrienne and for 9 fewer years than dennis, for how many years has dennis taught?	Select the correct option.
A) 23
B) 32
C) 38
D) 41
E) 44
<gadget id="calculator">9 + 9</gadget>
<output>18</output>

<gadget id="calculator">18 + 9</gadget>
<output>27</output>

<gadget id="calculator">87 - 27</gadget>
<output>60</output>

<gadget id="calculator">60 / 3</gadget>
<output>20</output>

<gadget id="calculator">20 + 18</gadget>
<output>38</output>

<result>C</result>
virginia, adrienne, and dennis have taught history for a combined total of 87 years. if virginia has taught for 9 more years than adrienne and for 9 fewer years than dennis, for how many years has dennis taught?
add(divide(subtract(87, add(add(9, 9), 9)), const_3), add(9, 9))
"let number of years taught by virginia = v number of years taught by adrienne = a number of years taught by dennis = d v + a + d = 96 v = a + 9 = > a = v - 9 v = d - 9 = > a = ( d - 9 ) - 9 = d - 18 d - 9 + d - 18 + d = 87 = > 3 d = 87 + 27 = 114 = > d = 38 answer c"