Correct option is B
Given:

Logic: Middle number = (Right side)3 + (Left side)3+ (Base side)2 and It's rotating in Anticlockwise in next figures.
In 1st Figure:
(3)3 + (2)3+ (4)2= 51
27 + 8 + 16 = 51
51 = 51
In 2nd Figure:
(5)3+ (7)3+ (8)2= 532
125 + 343 + 64 = 532
532 = 532
In 3rd Figure:
(5)3+ (1)3+ (6)2= ?
125 + 1 + 36 = 162
Thus, the correct option is (b)






