Translate to an equation p $40 pants and s $20 shirts total $160

x*40$+y*20$=160$

40x+20y=160

x=numbers of pants

y=numbers of shirts