You have a total of 80 dollars to spend on groceries. You spend some money on meat and then spend 52 dollars on everything else. If you leave the grocery store with 5 dollars, how much money did you spend on meat?