It takes Ralph 12 hours to paint a fence alone. Lisa can do the same job in 15 hours. If Ralph paints alone for 40 minutes before Lisa begins helping, how long must they work together to finish painting the fence? Give your answer as a simplified fraction.