In order to participate in the Chinese character dictation competition, Lili bought a set of clothes. The pants cost 90 yuan, and the price of the jacket was three times that of the pants, which was 40 yuan less. How much did Lily spend in total?
莉莉为了参加汉字听写大赛，买了一套服装，裤子花了90元，上衣的价钱是裤子的3倍少40元，莉莉一共花了多少钱？
<gadget id="calculator">90 * 3</gadget>
<output>270</output>

<gadget id="calculator">270 - 40</gadget>
<output>230</output>

<gadget id="calculator">90 + 230</gadget>
<output>320</output>

<result>320</result>