4 * 1/6 = 2/3 (Xiaoming will give Xiao Liang 2/3 glass balls).
Xiao Ming's remainder: 4-2/3 = 3 and 1/3 (copies)
Existing in Liang Xiao: 3+2/3 = 3 and 2/3 (copies)
The extra 1/3 copies correspond to 2, so one copy contains: 3 * 2 = 6 (pieces).
Xiaoming has four original glass balls, knowing that each glass ball is six, so Xiaoming's original glass ball is 4 * 6 = 24 (pieces).
I wish you progress in your study.