Hannah used 1 5/8 gallons of paint for the ceiling and some gallons of paint for the walls. Hannah used 6 gallons of paint in all. How much paint did Hannah use for the walls?