Let the three numbers be x, y and z.

Now,

Its given that their sum is 98.

So, x + y + z = 98 --Eq.1

Again, given ratios –

x : y = 2 : 3 --Eq.2

y : z = 5 : 8 --Eq.3

So, now we have to find the second number i.e. y

Finding the value of x in terms of y.

Using Eq.2, we can write

x/y = 2/3

x = 2y/3 --Eq.4

Now, again finding the value of z in terms of y.

Using Eq.3, we can write

y/z = 5/8

z = 8y/5 --Eq.5

Putting the values of x and z according to Eq.4 and Eq.5 in Eq.1

x + y + z = 98

2y/3 + y + 8y/5 = 98

Making the denominators common

10y/15 + 15y/15 + 24y/15 = 98

49y/15 = 98

Transposing 15 and 49 to RHS

y = 98×15/49

y = 2 × 15

y = 30

So, the answer is (C)30