Figure: (0 stands for pencil, 1 stands for ballpoint pen)
A: 0 0 0 0 0 0
B: 1 1 1 1。
A: 0 0 0 0 0 1
B: 1 1 1 0
5 pencils+1 ballpoint pen =3 ballpoint pens+1 pencil.
4 pencils =2 ballpoint pens
2 pencils = 1 ballpoint pen
Replace 2 pencils with 1 ballpoint pen: 6/2=3 (pieces)
Ballpoint pen: 2 1/(3+4)=3 yuan.
Pencil: 3/2= 1.5 (Yuan)