The Smiths family had dinner at their favorite restaurant. A 8% sales tax was added to their bill. Amy paid the bill with a $30 gift certificate plus $33.40. How much did the family's dinner cost before tax? Round your answer to the nearest penny.