How can one letter in German tell you who's looking for whom?
One letter can help you work out who's looking for whom. In Mia sucht den Hund, Mia is looking for the dog. So why does the little word for ‘the’ look different from the one you learnt with Hund?
Start with Mia wartet, meaning Mia is waiting. Ask yourself who is waiting. You can point to Mia. She's the subject of the verb. In German, the subject is in the nominative case.
Now read Mia sucht den Hund, meaning Mia is looking for the dog. Mia is still the subject: she's doing the looking. Point to den Hund: that's who she's looking for. It's the direct object of sucht, and here it takes the accusative case.
Mia kauft die Tasche means Mia buys the bag. First ask yourself who is doing the buying. Then ask what that person buys. Pick the words that answer the second question.
Watch the article for one dog. When the dog is the subject, you see der Hund. When it's the direct object, you see den Hund. Both mean ‘the dog’. For ‘a dog’, watch ein Hund change to einen Hund.
Look across the first row at die Tasche, the bag. Tasche is feminine, and you see die in both columns. Now look at das Handy, the mobile phone. Handy is neuter, and das stays the same too. The noun's role can change while its article stays the same.
You want to write that Mia buys a rucksack. Start with Mia kauft: Mia is the buyer. Now pick out what she buys, a rucksack. Rucksack is masculine, so change ein to einen. Put it together: Mia kauft einen Rucksack.
Now write that Ben buys a ball. Start with Ben kauft, meaning Ben buys. Ball is masculine. Think about what role the ball plays in the sentence, then pick the words that mean ‘a ball’ here.
If you change every article to den, you'll get the examples on the left wrong. First ask what Mia buys to find the direct object. Then check its gender. Tasche is feminine, so keep die. Handy is neuter, so keep das.
Was kaufst du für die Schule? That asks what you buy for school. Start with Ich kaufe, meaning ‘I buy’. If you're buying a pen, that's your direct object. Stift is masculine, so choose einen Stift. Write the full answer: Ich kaufe einen Stift.