2. (12 points) During the break, a fly flew into the math classroom and started crawling on a poster, on which the graph of a quadratic function $y=f(x)$ was depicted in the coordinate plane, with the leading coefficient equal to -1. Initially, the fly moved exactly along the parabola up to the point with an abscissa of 2, but then it started moving along a straight line until it hit the parabola again at the point with an abscissa of 4. Find $f(3)$, given that the line $y=2023 x$ intersects the fly's path along the straight line segment at its midpoint.