user: Your wizard cousin works at a Quidditch stadium and wants you to write a function that calculates the points for the Quidditch scoreboard! 

# Story

Quidditch is a sport with two teams. The teams score goals by throwing the Quaffle through a hoop, each goal is worth **10 points**.

The referee also deducts 30 points (**- 30 points**) from the team who are guilty of carrying out any of these fouls: Blatching, Blurting, Bumphing, Haverstacking, Quaffle-pocking, Stooging 

The match is concluded when the Snitch is caught, and catching the Snitch is worth **150 points**. Let's say a Quaffle goes through the hoop just seconds after the Snitch is caught, in that case the points of that goal should not end up on the scoreboard seeing as the match is already concluded. 

You don't need any prior knowledge of how Quidditch works in order to complete this kata, but if you want to read up on what it is, here's a link: https://en.wikipedia.org/wiki/Quidditch

# Task

You will be given a string with two arguments, the first argument will tell you which teams are playing and the second argument tells you what's happened in the match. Calculate the points and return a string containing the teams final scores, with the team names sorted in the same order as in the first argument. 

# Examples:

# Given an input of:

# The expected output would be:

Separate the team names from their respective points with a colon and separate the two teams with a comma. 

Good luck!

Answer: {"fn_name": "quidditch_scoreboard", "inputs": [["Appleby Arrows vs Montrose Magpies", "Montrose Magpies: Quaffle goal, Montrose Magpies: Quaffle goal, Appleby Arrows: Quaffle goal, Appleby Arrows: Quaffle goal, Montrose Magpies: Haverstacking foul, Appleby Arrows: Quaffle goal, Appleby Arrows: Quaffle goal, Appleby Arrows: Quaffle goal, Appleby Arrows: Quaffle goal, Montrose Magpies: Caught Snitch"], ["Kenmare Kestrels vs Barnton", "Barnton: Quaffle goal, Kenmare Kestrels: Quaffle goal, Barnton: Quaffle goal, Barnton: Quaffle goal, Barnton: Quaffle goal, Barnton: Quaffle goal, Kenmare Kestrels: Blurting foul, Barnton: Quaffle goal, Barnton: Quaffle goal, Barnton: Quaffle goal, Barnton: Quaffle goal, Barnton: Quaffle goal, Kenmare Kestrels: Caught Snitch"], ["Puddlemere United vs Holyhead Harpies", "Puddlemere United: Quaffle goal, Holyhead Harpies: Quaffle goal, Holyhead Harpies: Quaffle goal, Puddlemere United: Quaffle goal, Puddlemere United: Quaffle goal, Puddlemere United: Bumphing foul, Holyhead Harpies: Quaffle goal, Holyhead Harpies: Quaffle goal, Puddlemere United: Caught Snitch"], ["Pride of Portree vs Banchory Bangers", "Pride of Portree: Quaffle goal, Pride of Portree: Caught Snitch"], ["Chudley Cannons vs Tutshill Tornados", "Chudley Cannons: Blatching foul, Tutshill Tornados: Quaffle goal, Tutshill Tornados: Quaffle goal, Tutshill Tornados: Quaffle goal, Tutshill Tornados: Quaffle goal, Tutshill Tornados: Quaffle goal, Tutshill Tornados: Quaffle goal, Tutshill Tornados: Caught Snitch"], ["Wimbourne Wasps vs Cork", "Cork: Quaffle goal, Cork: Quaffle-pocking foul, Cork: Quaffle goal, Wimbourne Wasps: Quaffle goal, Cork: Quaffle goal, Wimbourne Wasps: Quaffle goal, Wimbourne Wasps: Quaffle goal, Wimbourne Wasps: Quaffle goal, Cork: Quaffle goal, Wimbourne Wasps: Quaffle goal, Cork: Caught Snitch, Wimbourne Wasps: Quaffle goal"], ["Lancashire vs Ballycastle Bats", "Lancashire: Quaffle goal, Lancashire: Stooging foul, Lancashire: Quaffle goal, Lancashire: Quaffle goal, Lancashire: Quaffle goal, Lancashire: Quaffle goal, Ballycastle Bats: Quaffle goal, Ballycastle Bats: Quaffle goal, Lancashire: Quaffle goal, Ballycastle Bats: Quaffle goal, Ballycastle Bats: Quaffle goal, Ballycastle Bats: Quaffle goal, Ballycastle Bats: Quaffle goal, Ballycastle Bats: Quaffle goal, Ballycastle Bats: Quaffle goal, Ballycastle Bats: Quaffle goal, Lancashire: Caught Snitch, Ballycastle Bats: Blurting foul"], ["Caerphilly Catapults vs Wigtown Wanderers", "Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Wigtown Wanderers: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Caerphilly Catapults: Quaffle goal, Wigtown Wanderers: Caught Snitch"]], "outputs": [["Appleby Arrows: 60, Montrose Magpies: 140"], ["Kenmare Kestrels: 130, Barnton: 100"], ["Puddlemere United: 150, Holyhead Harpies: 40"], ["Pride of Portree: 160, Banchory Bangers: 0"], ["Chudley Cannons: -30, Tutshill Tornados: 210"], ["Wimbourne Wasps: 50, Cork: 160"], ["Lancashire: 180, Ballycastle Bats: 90"], ["Caerphilly Catapults: 170, Wigtown Wanderers: 160"]]}