4x-x=30
3x=30
x= 10
10*4=40
Answer: Flour 10 kg, rice 40 kg.
The second question seems to be missing a condition.
I am a math teacher in grade six.