A customer purchased 9 avocados at the same price each. The customer had $46 to spend on groceries. After purchasing the avocados, the customer was left with $27.19. How much did each avocado cost?