The total bill at a restaurant was $58.23 and included a $12 tip for the server.

What was the average spent per person prior to the tip if there were 3 people at the dinner?