During a charity event, tickets were sold for a raffle with a prize of $1,000. The tickets were priced differently over the duration of the event. Initially, tickets were sold at $5 each, but after the first 50 tickets were sold, the price increased to $7 each. The total number of tickets sold was 150.
Let:
Quantity A: The total revenue generated from ticket sales.
Quantity B: The total prize amount for the two winners, who won by purchasing their tickets.