P and Q together have 3 times what Q and R have, while P, Q, and R together have thirty rupees more than P. If Q has 5 times what R has, then what amount does P have?
A) Rs. 30
B) Rs. 35
C) Rs. 40
D) Rs. 45