### Instruction: Elsa's hockey team just made the playoffs along with two other teams. They make the playoffs by having the top three highest points for their records. Teams get 2 points for a win, 1 point for a tie, and zero points for a loss. The first-place team has 12 wins and 4 ties. The second-place team has 13 wins and 1 tie. Elsa's team has 8 wins and 10 ties. What is the average number of points for the playoff teams? Please write a program to solve it.### Response: # define the function to calculate points
def calculate_points(wins, ties):
    return wins*2 + ties

# calculate points for each team
first_place_points = calculate_points(12, 4)
second_place_points = calculate_points(13, 1)
elsa_team_points = calculate_points(8, 10)

# calculate average points
average_points = (first_place_points + second_place_points + elsa_team_points) / 3

# print the result
print(average_points)