After the first time: warehouse A: 2/3x, warehouse B: y+ 1/3x.
After the second time: Warehouse a: 2/3x+2/5*(y+ 1/3x)
Warehouse B: 3/5*(y+ 1/3x)
Then: [3/5 * (y+1/3x)]: [2/3x+2/5 * (y+1/3x)] = 9:10.
De: x:y=6: 13
It turns out that the grain in warehouse A is six thirteenth of that in warehouse B..