Richard goes to the electronic store. he buys two memory cards that cost $8.99 each and three packages of batteries that are on sale for $7.49 each. he also buys a case for his cell phone for $2.99 and a wireless headset for $29.99. what is the total cost of Richard's items, before sales tax?