Sam painted the walls shown. He took 12 hours to paint the walls. If Sam took the same amount of time to paint each wall, how long did he take to paint 1 wall?