Hasan sold an artical for 56 taka which cost him x taka. If he had gained x% on his outlay, what was his cost?

Answer: 
40 taka
Hasan sold an artical for 56 taka which cost him x taka. If he had gained x% on his outlay, what was his cost?