An equation is a sentence saying that two descriptions name the same amount. Suppose Leo has $15 and saves $8 a week, and you want to know when he will have $95. One description of his money after w weeks is 15+8w; the other is the number in the question, 95. Set them equal: 15+8w=95. Then 8w=80 and w=10 weeks.
Begin by writing what the letter means, with units: "Let w = number of weeks." That one line stops you from mixing up weeks and dollars later. Then translate each phrase by asking which quantity it describes. "5 less than a number" is n−5: you start with the number and take 5 away, even though the 5 is said first. "Twice the sum of a number and 3" is 2(n+3), not 2n+3.
A diagram can supply the equation too. If a rectangle's length is 4 cm more than its width and its perimeter is 28 cm, the perimeter rule gives 2w+2(w+4)=28. Then 4w+8=28, so the width is 5 cm and the length is 9 cm.
Without a condition you can only write an expression. "Leo's money after w weeks" is 15+8w, a rule that works for every w. It becomes an equation only when the story ties it to a value or to another expression, such as "he has $95" or "he has as much as his sister".
Think of it like this. Writing an equation from a story is translating a sentence into another language: each phrase has a matching piece, but the word order does not always carry over. "5 less than n" puts the 5 first in English and last in algebra, as n−5. The translation is only finished when it contains an equals sign.
Core idea. Writing an equation from context means naming the unknown and making two descriptions of the same quantity equal.