Use BIDMAS Brackets, indeces, division, multiplication, addition and subtraction. Use it in that order

(2+7)-4=5