In light of the problem with defective tubes, the toothpaste factory adjusted their production process. In the morning shift, they produced 1296 tubes of toothpaste. In the afternoon shift, they still managed to produce 882 tubes. How many tubes of toothpaste did the factory produce in a day after adjusting the production process?