The opening part will immediately be followed by the verb ‘agreed’ so, Q will follow first. R is the next one to follow as it mentions what they are agreed upon. PS forms the mandatory pair as can be seen with the help of the relative pronoun ‘which’. QRPS is the correct sequence. Hence, (d) is the correct option.