 
 <prompt> Derek ya yi kuɗi na $40. Ya yi sarrafa na $14 don kaya ga kai, $11 don kaya ga babansa, da kuma $5 don kaya ga kai. Uwarshi Dave ya yi kuɗi na $50 kuma ya yi sarrafa na $7 don kaya ga mamansa. Me yasa Dave ya yi kuɗi gaba da Derek? <response>: Derek yayi 40-14-11-5 = 10 dala kasuwa
Dave yayi 50-7 = 43 dala kasuwa.
Dave yayi 43-10 = 33 dala kasuwa fiye da Derek.

Sami amsa shine 33. 