It's usually a good idea to capture something if you have more attacking pieces than the opponent has defending pieces. That way you will get to make the first and last capture in the exchange. Make sure to pay attention to which pieces are captured. You don't want to lose a queen to win two pawns!