Nǐ zhè dòuzhā nǎojīn zěnme lián zhème jiǎndān de tí dōu zuò bù chūlái?
How can a porridge-head like you fail to solve such an easy problem?
Tips
memory
豆渣 is the gritty, useless leftover pulp from making tofu - soft and shapeless. Calling someone 豆渣脑筋 ('tofu-pulp brain') says their thinking is just as mushy and worthless.
register
Crude colloquial insult. Mild compared to true profanity, but still rude - keep it for joking among close friends.