A person needs to pay Tk. 500 to buy 100 pencils and Tk. r for any additional unit of pencil. If the customer pays a total of Tk. 4,700 for 1,200 pencils, what is the value of x?