Given the task definition and input, reply with output. In this task, you need to answer the given multiple-choice question on the general math. Classify your answers into 'a', 'b', 'c', 'd', and 'e'.

Problem: when positive integer n is divided by positive integer p , the quotient is 18 , with a remainder of 7 . when n is divided by ( p + 2 ) , the quotient is 15 and the remainder is 1 . what is the value of n ?
Options: a ) 151 , b ) 331 , c ) 511 , d ) 691 , e ) 871
a