Sort:  

Yes you are not required to state the method. Feel free to use any methods to arrive at your answer, maths or programming as you like :)