<image>As shown in the figure, the amount paid \( y (\text{yuan}) \) for purchasing a type of apple and the purchased quantity \( x (\text{kg}) \) is represented by a piecewise function composed of line segment \( OA \) and ray \( AB \). How much does it cost to purchase \( 5 \) kg of this apple? 
