At the start, David has 34 dollars and Juan has 72 dollars. Juan's money stays the same after David spends some money, and we are told he has three times as much as David after David spends some of his money. 72/3 is 24 dollars, which is what David is left with. 34-24 is \(\boxed{10}\) dollars

- Eyedrop