Let three kinds of rice, A, B and C, be x, y and z kilograms respectively.
According to the equal number of good rice, middle rice and two meters, the formula is obtained:
4x+3y+2z=3x+y+z=2x+5y+z
x+y+z=350
The result is the same.