The cost of renting a backhoe for up to $10$ days is $\$270$ for the first day and $\$135$ for each additional day. Which of the following equations gives the cost $y$, in dollars, of renting the backhoe for $x$ days, where $x$ is a positive integer and $x\leq 10$?