设大米共x千克,则面粉为(2x+100)千克.
(2x+100)-x=3900
x+100=3900
x=3900-100
x=3800
3800×2+100=7700(千克)
答:大米有3800千克,面粉有7700千克.