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

1. If a perfect square is followed by an odd number, multiply the odd number with the root of the perfect square.

2. If two prime numbers are placed consecutively, add them.

3. If a number is succeeded by its divisor, then divide them; else add them.

4. If an odd number is followed by an even number, the second number is to be subtracted from the first number.

Q.4. 16 18 17

24 a 5

If a is the resultant of the first row, what is the resultant of the second row?