If they are both reporting different information, do not add them together. You would just enter two separate W-2s.
Be sure that one of the W-2s is not marked as 'corrected'. If that is the case, then only enter the information shown on the 'corrected' document.