Let Liang Xiao have X comic books and Xiao Ming have x+24 comic books.
According to the meaning of the question
x+24 = 3*x
The solution is x = 12 (Ben)
12+24 = 36 (Ben)
Xiaoming has 36 comic books and Liang Xiao has 12 comic books.