Jaadu went to buy a chocolate worth Rs. x. He gave Rs.20 rupee note to the shopkeeper to buy the chocolate then shopkeeper gave rest of the money in the denominations of 50 paise, 2 rupee, and 5 rupees. If the ratio of the number of coins is 5:2:1 respectively. Then what is the price of the chocolate?