According to the second condition, the equation 4x+7 * (100-5x)/2 =161.
Solve the equation X= 14, that is, each pencil box 14 yuan.
Then each 15 yuan.
I hope it helps you ~ ~