Sam bought 3/4 pound of almonds and 2/3 pound of cashews. Each pound of almonds costs $8 and each pound of cashews costs $9. How much did Sam spend in total? Let's think step by step and output the final answer within \boxed{}.
user