**
**

In each of the following questions, two rows of numbers are given. The resultant number in each row is to be worked out separately based on the following rules and the questions below the rows of numbers are to be answered. The operation of numbers progress from the left to the right.

**Rules:**

(i) If an odd number is followed by another composite odd number, they are to be added.

(ii) If an even number is followed by an odd number they are to be added.

(iii) If an even number is followed by a number which is the perfect square, the even number is to be subtracted from the perfect square.

(iv) If an odd number is followed by a prime odd number, the first number is to be divided by the second number.

(v) If an odd number is followed by an even number, the second one is to be subtracted from the first number.

15 8 21

p 3 27

If 'p' is the resultant of the first row, what will be the resultant of the second row?