A line graph is the visual representation of two sets of quantitative data where one data is dependent on the…