Найти периметр прямоугольника

<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="variables_set" id="3" x="63" y="38">
<field name="VAR">Сторона А</field>
<value name="VALUE">
<block type="text_prompt_ext" id="38">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text" id="39">
<field name="TEXT">Введите первую сторону</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="13">
<field name="VAR">Сторона B</field>
<value name="VALUE">
<block type="text_prompt_ext" id="40">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text" id="41">
<field name="TEXT">Введите вторую сторону</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="20">
<field name="VAR">Периметр прямоугольника</field>
<value name="VALUE">
<block type="math_arithmetic" id="122">
<field name="OP">MULTIPLY</field>
<value name="A">
<block type="math_arithmetic" id="67">
<field name="OP">ADD</field>
<value name="A">
<block type="variables_get" id="94">
<field name="VAR">Сторона А</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="103">
<field name="VAR">Сторона B</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="math_number" id="141">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<next>
<block type="text_print" id="195">
<value name="TEXT">
<block type="text_join" id="177">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="159">
<field name="TEXT">Периметр прямоугольника = </field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="204">
<field name="VAR">Периметр прямоугольника</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>