The 7 friends lined up to take pictures, Pengpeng didn’t want to stand on the left, and Qiqi didn’t want to stand on the right. How many different arrangements are there?
7个小伙伴排成一排照相，鹏鹏不愿意站在左边，奇奇不愿意站在右边，一共有多少种不同的排列方式？
<gadget id="calculator">7 * 6 * 5 * 4 * 3 * 2 * 1</gadget>
<output>5_040</output>

<gadget id="calculator">6 * 5 * 4 * 3 * 2 * 1</gadget>
<output>720</output>

<gadget id="calculator">5_040 - 720 - 720</gadget>
<output>3_600</output>

<gadget id="calculator">5 * 4 * 3 * 2 * 1</gadget>
<output>120</output>

<gadget id="calculator">3_600 + 120</gadget>
<output>3_720</output>

<result>3_720</result>