3x/5+6=x
x= 15
3x=45
There are 45 pieces of sugar in this bag.
Arithmetic method
6( 1/3- 1/5)= 45 (grains)
The second known condition is useless, but if it doesn't hold after the test, the original problem is wrong and the test holds.