You bought 8 bags of dog food and 2 boxes of dog treats for a total of $135. Your friend bought 6 bags of dog food and 4 boxes of dog treats for a total of $110. Each bag of dog food costs the same amount. Each box of dog treats costs the same amount. Write a system of equations, then find the cost of one bag of dog food.