hello!
Let's write this verbal phrase as an inequality.
First of all, let the number be n.
"three times n" can be written like so:-

Now, 18 is greater than 3n:-

Which means 3n is less than 18:-

note:-
Hope everything is clear; if you need any explanation/clarification, kindly let me know, and I'll comment and/or edit my answer :)