Initially, the painter calculated that they used 12 gallons of blue paint and 75 gallons of white paint. But on double-checking their measurements, they realized they had actually used only 57 gallons of white paint instead of 75 gallons. So, how many gallons of paint did the painter actually use for the house?