A recipe requires 4 cups of flour to make 16 cookies. If you have 10 cups of flour, how many cookies can you make? Additionally, if the cost of flour is $0.50 per cup, what is the total cost of the flour used to make the cookies? Let's think step by step and output the final answer within \boxed{}.
user