The defense can tag both and let the umpire sort it out!
Which runner that would be out would depend on the situation. For example, if it is a force situation, the lead runner could be tagged for the out, but the trailing runner is safe on the bag. If it is not a force situation, the trailing runner could be tagged for the out, but the lead runner is safe on the bag.