The number of dimes in the bag can be represented by x. The number of quarters is 6 more than twice the number of dimes. There are a total of 276 coins in the bag. What is x, the number of dimes in the bag?