In order to answer this question, you first need to know what the sequence of the numbers is. What are the common things about the numbers? You can see that for every number; the value is tripled.
From 2, the next number became six. If you would multiply 2 by 3, you will get 6. Then the next number after 6 is 18. If you would multiply 6 by 3, you will get 18. This means that the last number, which is 54, should also be tripled. 54 multiplied by 3 is 162, so this will be the next number in the sequence.
Sequencing is one of the things that people usually do in order to test their IQ. The faster that they are able to see the needed sequence, the faster their IQ is supposed to be.