Loosen the slip nuts with groove-joint pliers, unscrew the nuts by hand and slide them away from the connections.
Be sure to save the two washers that are part of the slip nut connection; you can reuse them with the new trap. Pull off the trap. The old trap will have some gunky water in it, so place the old trap in the bucket.