In a family, there are four members: P, Q, R, and S. P is the grandfather of R. Q is the sister of R and the daughter of S. What is the relationship of S to P?
A can complete a work in 12 days, while B can complete the same work in 18 days. If they work together, how many days will they take to complete the work?