A preposition is a word used to connect nouns and pronouns to other words in a sentence to achieve clarity. For example: “Emmerson Mnangagwa is in the spotlight after the Zimbabwe elections”.
To say 'to the' or 'at the' in French, use: à + the correct article le/la/l’/les ...
So, because there’s movement from one place to another, the accusative case das Bett has to be used after the dual case preposition unter. In the second sentence the shoes are already under the bed.