A pizza shop sells a single pizza for 11 dollars. However, at the end of the night, they will sell extra pizzas for 6 dollars each. If the pizza shop sold 51 pizzas before the discounted price and made 615 dollars, find the number of discounted pizzas they sold.