A machine is sold at a profit of 10%. Had it been sold for Tk. 40 less, there would have been a loss of 10%. What was the cost price?