In a community book sale, various books are sold to raise funds for the local library. After the event, it was reported that the total revenue from the book sale was $960. The sale of fiction books alone brought in $180. The revenue from non-fiction books was twice the revenue from fiction books. The revenue from children's books was $50 more than half the revenue from non-fiction books. How much revenue was generated from the sale of cookbooks? Let's think step by step and output the final answer within \boxed{}.
user