设甲一件x元乙一件y元丙一件z元
3x+7y+z=34.5
4x+10y+z=42
x+3y=7.5
x=7.5-3y
z=42-4x-10y
=42-30+12y-10y
=12+2y
x+y+z=7.5-3y+y+12+2y
=19.5