The means are the methods you use. The ends are the goals or the final results. How you do something is more important than what you achieve if you say the means are more important than the ends. If you say something was a means to an end, it means it was what was necessary to do to achieve the goal. Therefore as per Lionel Robbins ends refer human wants.