If Patty's dress was $10 more than Ida's dress, and Ida's dress was $30 more than Jean's dress, and Jean's dress was $10 less than Pauline's dress, and lastly Pauline's dress was $30, how much did all the ladies spend on dressed put together?
Jean's dress was $10 less than Pauline's $30 dress, meaning it was 30-10= 
<gadget id="calculator">30-10</gadget>
<output>20</output>
20 dollars.
Ida's dress was $30 more than Jean's $20 dress, meaning it was 30+20=
<gadget id="calculator">30+20</gadget>
<output>50</output>
50 dollars.
Patty's dress was $10 more than Ida's $50 dress, meaning it was 50+10=
<gadget id="calculator">50+10</gadget>
<output>60</output>
60 dollars.
Therefore, all four women together spent 60+50+20+30=
<gadget id="calculator">60+50+20+30</gadget>
<output>160</output>
160 dollars.

<result>160</result>