Ophelia and Jenna are living in the same apartment building. They each have 2 fewer sofas than chairs. Jenna has 3 times as many chairs as Ophelia. If Ophelia has 20 sofas, calculate the total number of sofas and chairs that they have.
If Ophelia has 20 sofas and 2 fewer sofas than chairs, she has 20+2 = 
<gadget id="calculator">20+2</gadget>
<output>22</output>
22 chairs.
Jenna has 3 times as many chairs as Ophelia, a total of 3*22 = 
<gadget id="calculator">3*22</gadget>
<output>66</output>
66 chairs.
The total number of chairs Ophelia and Jenna have is 66+22 = 
<gadget id="calculator">66+22</gadget>
<output>88</output>
88.
Since Jenna also has 2 fewer sofas than chairs, the total number of sofas she has is 66-2 = 
<gadget id="calculator">66-2</gadget>
<output>64</output>
64 sofas.
The total number of sofas Ophelia and Jenna have is 64+20 = 
<gadget id="calculator">64+20</gadget>
<output>84</output>
84 sofas.
Together, they have 84 sofas+88 chairs = 
<gadget id="calculator">84+88</gadget>
<output>172</output>
172.

<result>172</result>