When would a straight-line graph be applicable in a real life situation? I can not think of any?

or could you apply this to the drinking age?

You can purchase and drink beer once you are = or greater than 21 years old?

Im I thinking on the right page?

Straight line graphs are often useful:

Mileage charts vs fuel consumption.
Number crates vs number oranges packed

and so on and so on.

Yes, you are thinking along the right lines! A straight-line graph can indeed be applicable in a real-life situation, such as determining the relationship between variables like mileage and fuel consumption. In the case of mileage charts vs fuel consumption, you can plot the distance traveled on the x-axis and the amount of fuel consumed on the y-axis. If the relationship between these variables is linear (meaning that fuel consumption increases or decreases proportionally with mileage), you would get a straight-line graph.

Similarly, the relationship between the number of crates and the number of oranges packed can also be plotted on a straight-line graph. If there is a consistent and predictable relationship between the two variables, you would observe a straight-line pattern.

Regarding the example you mentioned with the drinking age, the concept of a straight-line graph may not directly apply in this case. The drinking age is typically a fixed age limit (such as 21 years old in some countries), which does not involve a variable relationship. However, if you were to plot the number of people of different ages who are legally allowed to drink, you may observe a horizontal line at the age of 21 since everyone at or above that age would be eligible to drink.

So, while a straight-line graph may not be directly applicable to the drinking age example, there are numerous real-life situations where it can be used to analyze relationships between various variables.