Answer: 34 in one bucket, 62 in the other
======================================================
Work Shown:
x = number of golf balls in bucket A
y = number of golf balls in bucket B
Let's say bucket B has more golf balls. More specifically it has 28 more golf balls, so,
y = x+28
The two quantities must add to 96 golf balls total.
x+y = 96
x+x+28 = 96
2x+28 = 96
2x = 96-28
2x = 68
x = 68/2
x = 34 is the number of golf balls in bucket A
y = x+28
y = 34+28
y = 62 is the number of golf balls in bucket B
-------------
Check:
x+y = 34+62 = 96
The answer is confirmed.