There are a total of 30 villages in Xingxing Township, and every 3 villages are not in a straight line, and a wire is installed between every two villages. How many wires are needed in total?
明星乡一共有30个村，每3个村都不在一条直线上，每两村之间架一条电线，一共要架多少条电线？
<gadget id="calculator">30 / 2</gadget>
<output>15</output>

<gadget id="calculator">29 * 15</gadget>
<output>435</output>

<result>435</result>