Question: are methyl groups electron donating or withdrawing?
Answer: A methyl group is an electron donor. The carbocation with an oxonium ion resonance contributor is more stable than one without because the oxygen lone pairs are shared via resonance. This hydroxyl group is an electron donating group.