Input the amount of each item you have and it will output the total and the resulting rank.
Credits to Nintendo (2001) for making Luigi's Mansion and to Luigi's Mansion Wiki on Fandom for providing me with the necessary info to make this.