A pen is longer than the rubber by 3 centimeters, and shorter than the pencil by 2 centimeters. Considering the pencil is 12 centimeters long, what is the total length of the rubber, the pen, and the pencil altogether?
The pen is shorter than the pencil by 2 centimeters, so it's 12 - 2 = 
<gadget id="calculator">12-2</gadget>
<output>10</output>
10 centimeters long.
That means the rubber is 10 - 3 = 
<gadget id="calculator">10-3</gadget>
<output>7</output>
7 centimeters long.
So all accessories are 7 + 10 + 12 = 
<gadget id="calculator">7+10+12</gadget>
<output>29</output>
29 centimeters long altogether.

<result>29</result>