Correct option is B
Given:
A and B together can do a piece of work in 10 days. A alone can do it in 30 days.
Concept:
Ram is work in X days, then,
Ram is work in one day =
solution:
A and B together can do a piece of work = 10 days
A can alone work = 30 days
Let B can alone work = x days
x =15 days
So, The time in which B alone can do it is 15 days.
Thus, the correct answer is (b).
Alternative method:

B =
B = 15 days