a. There is not enough information to determine the cost of 1 gallon of gasoline and 1 quart of oil because the prices of gasoline and oil are not specified individually in the given information.
b. Even with the receipt showing the same type of gasoline and oil, the quantities purchased by you and your friend are different. Without knowing the individual prices for gasoline and oil, it's still not possible to determine the cost of 1 gallon of gasoline and 1 quart of oil.