Question: how are huck and tom foils?
Answer: In Huckleberry Finn, Tom serves as a foil to Huck: imaginative, dominating, and given to wild plans taken from the plots of adventure novels, Tom is everything that Huck is not. ... His rigid adherence to society's conventions aligns Tom with the “sivilizing” forces that Huck learns to see through and gradually abandons.