Simplifying algebric expressions

Subtract (40-13p) from the sum of (-18p+ p – 32) and (13p + 20p – 12)