hello!
Let the number be n.
Now, "seven less than a number" means we subtract 7:-
n-7
This expression is equal to 18:-
note:-
Hope everything is clear; if you need any clarification/explanation, kindly let me know, and I will comment and/or edit my answer :)