In a single day, it rained for many hours. From 2pm to 4pm, it rained at a rate of 4 inches per hour. From 4pm to 7pm, it rained at a rate of 3 inches per hour. And from 7pm to 9pm, it rained at a rate of 0.5 inches per hour. If the rain gauge started out the day already containing 2 inches of rainwater, how many inches of water will the gauge contain at 9pm?