static void make_trades (PriorityQueue<Bid> sell, PriorityQueue<Bid> buy) {
		int minQuantity = min(sell.peek().getQuantity(), buy.peek().getQuantity());
		int minCost = min(sell.peek().getCost(), buy.peek().getCost());
		int sellQuantity = sell.peek().getQuantity();
		int buyQuantity = buy.peek().getQuantity();
		
		//Prints the details of the transaction.
		if(firstValue){
			System.out.print("(" + minCost + ", " + minQuantity + ")");
			firstValue = false; //Sets to false.
		}
		else{
			System.out.print(", (" + minCost + ", " + minQuantity + ")");
		}
		
		//Subtracts the quantity value from the respective transactions' quantities
		sell.peek().setQuantity(sellQuantity-minQuantity);
		buy.peek().setQuantity(buyQuantity-minQuantity);
		
		//Checks if the sell order has no remaining quantity left.
		if(sell.peek().getQuantity() == 0){
			sell.poll(); //Removes finished transaction.
		}
		
		//Checks if the buy order has no remaining quantity left.
		if(buy.peek().getQuantity() == 0){
			buy.poll(); // Removes finished transaction.
		}
	}