<s>[INST] The gatekeeper of a temple is allotted x rupees for the renovation of the temple. After setting aside 2/5 of the amount for the construction of the gates, the remaining amount is used to buy stones and marbles. the total cost of 200 marbles is 6/5 of the cost of 400 stones. Find the amount allotted by the gatekeeper.[/INST]